Mount NFS shares with samba or CIFS without password

By neokrates, written on November 18, 2011

howto

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • Which CI tools are used in your enterprise?

    • Something else (72%, 13 Votes)
    • Hudson (17%, 3 Votes)
    • CruiseControl (11%, 2 Votes)
    • Continuum (6%, 1 Votes)
    • TeamCity (6%, 1 Votes)

    Total Voters: 18

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

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:

[v] newer Debian, Ubuntu, CentOS distros.
[v] 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
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +1 (from 15 votes)
8 votes 'YES'  7 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

RELATED
Pages
Posts
    nope :(

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

INCOMING SEARCH TERMS


Leave a Reply