Samba share logons: Difference between revisions
migrate>Ra-N No edit summary |
No edit summary |
||
| Line 67: | Line 67: | ||
=== From Windows client: === | === From Windows client: === | ||
<div>Accessing share: '''\\server_ip\share_name '''or '''\\server_domain_name\share_name'''<br/></div> | <div>Accessing share: '''\\server_ip\share_name '''or '''\\server_domain_name\share_name'''<br/></div> | ||
=== From Linux client: === | === From Linux client: === | ||
| Line 86: | Line 85: | ||
== Log in to a share as a user. == | == Log in to a share as a user. == | ||
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px | <span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px">To login to SMB shares as a user, the following construction is required:</span> | ||
<div style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px | <div style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px">'''domain\user'''</div> | ||
where "domain" is a specific name provided by the domain administrator. | where "domain" is a specific name provided by the domain administrator. | ||
| Line 130: | Line 129: | ||
#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''' | #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''' | ||
#In the next window, click connect as '''Registered User'''. | #In the next window, click connect as '''Registered User'''. | ||
#Enter credentials: '''Username'''<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px | #Enter credentials: '''Username'''<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px">: username</span> '''Password''': secretpass and click '''Connect'''. | ||
</div></div> | |||
[[Category:ZFS and data storage articles]] | |||
Revision as of 11:55, 19 November 2019
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
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 user=guest -o dom=workgroup mount.cifs //server_domain_name/share_name /path/to/directory_name -o user=guest -o dom=workgroup
Example:
mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o user=guest -o dom=workgroup mount.cifs //host1/s1 /mnt/share/s1 -o user=guest -o dom=workgroup
Log in to a share as a 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 user=username -o pass=password -o dom=workgroup mount.cifs //server_domain_name/share_name /path/to/directory_name -o user=username -o pass=password -o dom=workgroup
Example:
mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o user=username -o pass=secretpass -o dom=workgroup mount.cifs //host1/s1 /mnt/share/s1 -o user=username -o pass=secretpass -o dom=workgroup
Active Directory
Log in to a share as a guest.
where "domain" is a specific name provided by the domain administrator.
From Windows client:
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 user=guest -o dom=domain mount.cifs //server_domain_name/share_name /path/to/directory_name -o user=guest -o dom=domain
Example:
mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o user=guest -o dom=domain mount.cifs //host1/s1 /mnt/share/s1 -o user=guest -o dom=domain
Log in to a share as a user.
To login to SMB shares as a user, the following construction is required:
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 user=username -o pass=password -o dom=domain mount.cifs //server_domain_name/share_name /path/to/directory_name -o user=username -o pass=password -o dom=domain
Example:
mount.cifs //192.168.188.49/s1 /mnt/share/s1 -o user=username -o pass=secretpass -o dom=domain mount.cifs //host1/s1 /mnt/share/s1 -o user=username -o pass=secretpass -o dom=domain
macOS
The following methods work for LDAP and AD as well.
- From the Go menu, click Connect to Server.
- 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
- In the next window, click connect as Guest.
- Click Connect.
- From the Go menu, click Connect to Server.
- 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
- In the next window, click connect as Registered User.
- Enter credentials: Username: username Password: secretpass and click Connect.