Samba share logons

From Open-E Wiki
Jump to navigation Jump to search

LDAP

Log in to a share as a guest.

To login to SMB shares as a guest, the following construction is required:


workgroup\guest or domain\guest

where "workgroup" or "domain" is a specific name provided by the domain administrator.

From Windows client:

Accessing share: \\server_ip\share_name or \\server_domain_name\share_name

From Linux client:

GUI access

Accessing share: smb://server_ip/share_name or smb://server_domain_name/share_name

Select “Anonymous” connection and click “Connect

CONSOLE access

mount.cifs //server_ip/share_name /path/to/directory_name -o username=guest,domain=workgroup

mount.cifs //server_domain_name/share_name /path/to/directory_name -o username=guest,domain=workgroup

Example:

mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o username=guest,domain=workgroup

mount.cifs //host1/s1 /mnt/share/s1 -o username=guest,domain=workgroup

Log in to a share as a user.

To login to SMB shares as a user, the following construction is required:

workgroup\user  or  domain\user

where "workgroup" or "domain" is a specific name provided by the domain administrator.


From Windows client:

Accessing share: \\server_ip\share_name or \\server_domain_name\share_name

From Linux client:

GUI access

Accessing share: smb://server_ip/share_name or smb://server_domain_name/share_name

Select “Registered” connection and enter:

Username: username

Domain: workgroup

Password: secretpass

CONSOLE access

mount.cifs //server_ip/share_name /path/to/directory_name -o username=username,password=password,domain=workgroup

mount.cifs //server_domain_name/share_name /path/to/directory_name -o username=username,password=password,domain=workgroup

Example:

mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o username=username,password=secretpass,domain=workgroup

mount.cifs //host1/s1 /mnt/share/s1 -o username=username,password=secretpass,domain=workgroup

Active Directory

Log in to a share as a guest.

To login to SMB shares as a guest, the following construction is required:

domain\guest

where "domain" is a specific name provided by the domain administrator.


Important! In case of logging to share as a guest in the SMB protocol, the guest account should be enabled in Active Directory. Otherwise, connection to that share will be denied and the following error in Samba logs occurs: NT_STATUS_ACCOUNT_DISABLED

From Windows client:

Accessing share: \\server_ip\share_name or \\server_domain_name\share_name

From Linux client:

GUI access

Accessing share: smb://server_ip/share_name or smb://server_domain_name/share_name

Select “Anonymous” connection and click “Connect

CONSOLE access

mount.cifs //server_ip/share_name /path/to/directory_name -o username=guest,domain=domain

mount.cifs //server_domain_name/share_name /path/to/directory_name -o username=guest,domain=domain

Example:

mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o username=guest,domain=domain

mount.cifs //host1/s1 /mnt/share/s1 -o username=guest,domain=domain

Log in to a share as a user.

To login to SMB shares as a user, the following construction is required:


domain\user

where "domain" is a specific name provided by the domain administrator.

From Windows client:

Accessing share: \\server_ip\share_name or \\server_domain_name\share_name

From Linux client:

GUI access

Accessing share: smb://server_ip/share_name or smb://server_domain_name/share_name

Select “Registered” connection and enter:

Username: username

Domain: domain

Password: secretpass

CONSOLE access

mount.cifs //server_ip/share_name /path/to/directory_name -o username=username,password=password,domain=domain

mount.cifs //server_domain_name/share_name /path/to/directory_name -o username=username,password=password,domain=domain

Example:

mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o username=username,password=secretpass,domain=domain

mount.cifs //host1/s1 /mnt/share/s1 -o username=username,password=secretpass,domain=domain

macOS

The following methods work for LDAP and AD as well.

Log in to share as a guest.
  1. From the Go menu, click Connect to Server.
  2. In the Connect to Server window, enter the share address in the following way: smb://server_ip/share_name or smb://server_domain_name/share_name
  3. In the next window, click connect as Guest.
  4. Click Connect.
Log in to a share as a user.
  1. From the Go menu, click Connect to Server.
  2. In the Connect to Server window, enter the share address in the following way: smb://server_ip/share_name or smb://server_domain_name/share_name
  3. In the next window, click connect as Registered User.
  4. Enter credentials: Username: username Password: secretpass and click Connect.