Mount NFS shares with samba or CIFS without password

By neokrates, written on November 18, 2011

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 5,053 views
Rate it
Ad
Poll
  • What are your favorite build tools?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

I you use mount -t cifs //my.host/mydir it will ask you for password. You will get the prompt even if there is no password on //my.host/mydir. That is especially a problem if you want to use /etc/fstab for auto mount.

Works for:

✔ newer Debian, Ubuntu, CentOS distros.
✔ Linux distros with CIFS support

Just add -o user=,password= and there will be mount with no prompt.

> mount -t cifs //my.host/mydir  -o user=,password= /mnt/samba 

and inside of fstab it would be :
less /etc/fstab

//my.host/svn    /mnt/samba             cifs    rw,nounix,user=,password=      0 0
Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -6 (from 36 votes)
15 votes 'YES'  21 votes 'NO'


TAGS

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


Leave a Reply