User Tools

Site Tools


linuxsambaclient
Samba
To connect to a Windows share:

Create a hidden file (ie .cifs_auth) with the following syntax:

username={user with access to the share}
password={password}

Note: I've found that the above works WITHOUT specifying the domain name (ie na\username or username@na)

To mount the Windows share:
# mount -t cifs //WindowsServerName/Share /MOUNTPOINT -o credentials=/PATH_TO/HIDDEN_FILE
To automount the Windows share

Example below assumes auto.autofs is being used. Add the following line to auto.autofs:

MOUNTPOINT  -fstype=cifs,credentials=/PATH_TO/HIDDEN_FILE,uid=<user>,gid=users  ://WindowsServer/Share

Change “gid=users” to correct group if user is defined in LDAP

linuxsambaclient.txt · Last modified: 2017/11/10 00:49 by mark