Fedora Linux Support Community & Resources Center
Old 22nd January 2006, 10:59 PM
Creedog Offline
Registered User
Join Date: Aug 2005
Posts: 53
etc/fstab smb mount without password

Not sure if my samba client on my ohter fedora box is messed up or what. Created a new share that I am trying to mount and I can only get the guest account to work. However even with no username it prompts me for a password, I just hit enter and it mounts. How do I edd a blank password to /etc/fstab so that it will mount automatically at boot.

Reply With Quote
Old 24th January 2006, 08:57 AM
Omega Blue Offline
Registered User
Join Date: Apr 2005
Location: Fragrant Harbour
Posts: 1,348
I see that you are trying to mount an external Samba share. I don't think you can do that in fstab. You need to create a shell script similar to this:

#! /bin/bash
/bin/mount -t smbfs -o username=foo,password=bar,gid=100,fmask=664,dmask=777 //source  /dest
Place the script in /etc/rc.d/init.d. Then create a symbolic link to the file in /etc/rc.d/rc5.d and prefix S99 to the file name. For example, if you name the script foobar then name the symbolic link S99foobar.

S99 gives the script the lowest priority during boot time.

You just need a random username and password if your share is public.

Last edited by Omega Blue; 24th January 2006 at 09:03 AM.
Reply With Quote
Old 25th January 2006, 10:55 PM
wesetters Offline
Registered User
Join Date: Sep 2005
Posts: 67
You can

//server/share smbfs /mountpoint options (include "guest" to be rid of password prompt).

Hope that helps
Reply With Quote
Old 26th January 2006, 06:14 AM
Spoon! Offline
Registered User
Join Date: Aug 2005
Location: Hell
Posts: 758
You can also use a blank username and blank password, since it's using anonymous login.
Reply With Quote

etc or fstab, mount, password, smb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
disk drives refuse to mount (fstab/mount) spfdz Using Fedora 10 13th November 2006 03:13 AM
mount ignores fstab, won't let me mount as a user clockworks Using Fedora 1 17th June 2005 11:38 PM

Current GMT-time: 06:12 (Wednesday, 23-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat