In order to mount your samba share to your Linux client open up the /etc/fstab file and insert the following line into this file
//172.19.12.137/Music /mnt/samba cifs credentials=/etc/accessfile 0 0
username=nikeshSave the above file and restart your Linux client (or type command mount -a), after restart you should now able to access the share content from the samba server under /mnt/samba directory.
password=some_password
This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly and also note that there should not be any extra space in this file.
It there are any space in this credentials file you might get the following error on trying to mount the file system
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
0 comments:
Post a Comment