Monday, March 23, 2015

samba mount

smb mnt

to mount from any user add in /etc/fstab

//IP/SHARENAME   /MNTDIR  cifs  user,exec,user=USERNAME,pass=PWD 0 0

where the first user is to allow users to mount, the second is for samba.
exec is for allowing execution of files

you can mount (but the mounter is sudo) from command line with
mount -t cifs -o user=USER -o password=PWD //IP/SHARENAME /MNTDIR

No comments:

Post a Comment