Saturday, February 9, 2013

how to mount samba fs to directory in linux


mount //some_server/share /home/grml/smbfs/share -o "user=share,password=****,uid=grml,gid=grml"

but if your password is complex (e.g. contains special characters), better use -o "credentials=/path/to/credential"

credential file format is:

username
password

On Debian 7.0, you will need to "apt-get install cifs-utils" first to get mount.cifs.

0 comments:

Post a Comment