mount -t smbfs -o username=adamo,password=\Void,rw,uid=a2i4494,gid=users //atomcp08/pdbs /home/a2i4494/pdbs
//NETBIOS_NAME/SHARE_NAME MNT/POINT smbfs OPTIONS 0 0
//atomcp08/pdbs /home/a2i4494/pdbs smbfs username=adomo,password=\$Void0,rw,uid=a2i4494,gid=users,auto,user 0 0
//gambit/music /mnt/gambit/music smbfs defaults,user,bg,noauto 0 0
> How can I get put this in my /etc/fstab so that it doesn't prompt me
> for a password upon bootup. This winshare is accessible without a
> password and by anyone. I have read through seveal forums and read
> man pages gallore, but I still remain unsuccessful.
> 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0
From the man page for mount_smbfs(8):
[quote]
~/.nsmbrc Keeps static parameters for connections and other information.
See /usr/share/examples/smbfs/dot.nsmbrc for details.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
It is possible to use fstab(5) for
++-
//guest@samba/public /smb/public smbfs rw,noauto 0 0
[/quote]
From /usr/share/examples/smbfs/dot.nsmbrc:
[quote]
# smbfs lookups configuration files in next order:
# 1. ~/.nsmbrc
# 2. /etc/nsmb.conf - if this file found it will
# override values with same keys from user files.
[/quote]
You will have to store your password in cleartext, but you seem to
already be doing this in home directory since you are using the -N flag.
//atomcp08/pdbs /home/a2i4494/pdbs smbfs credentials=/etc/cedit.1,rw,uid=a2i4494,gid=users 0 0
|