Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to specify a password in fstab for smb share mounting

Status
Not open for further replies.

Jasen

IS-IT--Management
May 1, 2002
435
US
The title is pretty self explainatory. FreeBSD 4.7. I entered a windows share to be automounted in fstab, but want to have it enter the password without prompting.
Possible? ________
Remember, you're unique... just like everyone else.
 
hrmm... well that didn't work. I get no errors, but it just doesn't mount the filesystem.
For now, I'm working around it by using a shell script in /usr/local/etc/rc.d and specifying the pass in ~/.nsmbrc, but I'd rather not do that.
Any other ideas to try with fstab? ________
Remember, you're unique... just like everyone else.
 
If you test it using the same options from the command line, such as mount -t smbfs -o username=foo,password=bar //server/share /mntpoint does it work... or give you any errors? Annihilannic.
 
It's the oddest thing, I get no errors from that either. It looks like it worked, but if I ls the newly mounted folder it's empty. If I use mount_smbfs it does work. Strange.
Would it make a difference that I'm mounting this share as /var/ftp/pub? This computer is the FTP server, but the content is actually located on the other win2k server.

It may just be easier to leave it like this than figure out what I'm doing wrong. ________
Remember, you're unique... just like everyone else.
 
On a Linux system of mine I need to have /sbin/mount.smbfs (a symlink to /usr/local/samba/bin/smbmount) for mount -t smbfs to work. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top