Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R box using the command mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 /sp/net-11 which then prompts me for my password. So now the question is...how do I put this in /etc/fstab? What do I do about the password?
On Wed, 6 Aug 2003, Brandon Fosdick wrote:> Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R > box using the command > > mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 > /sp/net-11 > > which then prompts me for my password. So now the question is...how do I > put this in /etc/fstab? What do I do about the password?See the file /usr/share/examples/smbfs/dot.nsmbrc. All the details are in there. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Unfortunately, I have a very good idea how fast my keys are moving.
Max Khon wrote:> hi, there! > > On Wed, Aug 06, 2003 at 10:06:28AM -0700, Brandon Fosdick wrote: > > >>Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R >>box using the command >> >>mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 >>/sp/net-11 >> >>which then prompts me for my password. So now the question is...how do I >>put this in /etc/fstab? What do I do about the password? > > look in /etc/nsmb.conf for examples. passwords should be encrypted > by 'smbutil crypt'I can get everything to work expect for the password part. With this in /etc/fstab //bfosdick@129.197.36.34/net-11 /sp/net-11 smbfs rw 0 0 and this in /etc/nsmb.conf [129.197.36.34] addr=129.197.36.34 workgroup=acct01 password=<secret> If I do 'mount /sp/net-11' it asks me for my password instead of looking in the config file. If I try 'mount_smbfs -N //bfosdick@129.197.36.34/net-11' I get mount_smbfs: unable to open connection: syserr = Authentication error The password I put in /etc/nsmb.conf is just the output from smbutil crypt.
From: Pete French [mailto:pfrench@firstcallgroup.co.uk]> > The password I put in /etc/nsmb.conf is just the output from smbutilcrypt.> Hmmm... I have plaintext passwords in there and that works for me. > Also in /usr/share/examples/smbfs/dot.nsmbrc it says that password > should be plaintext.Either works for me (4-STABLE). Encrypted passwords follow a specific format (start with $$), so they should be distinguishable from plaintext. The core issue with smbfs still appears to be that you cannot mount as user (even with vfs.usermount=1) because installing character set translation tables (libiconv) only can be done as root. In other words, you need to place passwords in /etc/nsmb.conf instead of the user's ~/.nsmbrc. Helge
hi, there! On Wed, Aug 06, 2003 at 10:06:28AM -0700, Brandon Fosdick wrote:> Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R > box using the command > > mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 > /sp/net-11 > > which then prompts me for my password. So now the question is...how do I > put this in /etc/fstab? What do I do about the password?look in /etc/nsmb.conf for examples. passwords should be encrypted by 'smbutil crypt' /fjoe
i have this running, do you need more help ??? regards Stefan On Wed, 06 Aug 2003 10:06:28 -0700 Brandon Fosdick <brandon.h.fosdick@lmco.com> wrote:> Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R > box using the command > > mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 > /sp/net-11 > > which then prompts me for my password. So now the question is...how do I > put this in /etc/fstab? What do I do about the password? > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org"