Date: Fri, 14 Apr 2006 11:19:49 +0100 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: =?ISO-8859-1?Q?Jostein_Kj=F8nigsen?= <jostein@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Problem regarding Samaba-automonts. Message-ID: <443F7745.9080603@dial.pipex.com> In-Reply-To: <dfaf19150604131720l7c9a457i383b5a8debc9010d@mail.gmail.com> References: <dfaf19150604131720l7c9a457i383b5a8debc9010d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jostein Kj=F8nigsen wrote: >Hi! > >I got a question regarding samba automounting in FreeBSD. I'm running >FreeBSD 6.0 and have Samba3 installed. > >Manual mounting works fine, but I do need to enter a password. This is >regardless if its a specific mount or mounting a /etc/fstab entry. > >As far as I've understood things, to get automounting working properly >(w/o the password request) I need to enter a few entris in >/etc/nsmb.conf. And so I've done. > >If I use lowercase letters for the[COMPUTERNAME] and >[COMPUTERNAME:USERNAME] section, it just gets ignored. > >If I use all uppercase, I get "syserror: connection reset by peer". > >I've tried a few combinations of various /etc/fstab capitalization and >/etc/nsmb.conf capitalizations, but to no avail. Either i get >"connection reset by peer", or I get a request for the password. > =20 > Here's a working nsmb.conf, with names etc. suitably obfuscated. You=20 need to use upper case, because windows seems to need it. Make sure=20 that Windows actually exports your share - I can't help with that as I=20 know next to nothing about it - the Windows techie does it :-) In this example, the addr=3D makes the connection actually happen to an=20 alternative name for the server, which happens to be on a Gbit, rather=20 than Mbit LAN. I don't believe it's required, but you could use the=20 proper DNS name for the windows server here - it might help. I think=20 you probably need that name to appear in /etc/hosts just in case DNS is=20 unavailable when the machine reboots, if you do want to auto-mount. [SERVER01] addr=3Dserver01-alt [SERVER01:USER.NAME] password=3Dthepassword [SERVER01:OTHERUSER.NAME] password=3Dtheotherpassword [SERVER02] addr=3Dserver02-alt [SERVER02:OTHERUSER.NAME] password=3Dtheotherpassword And fstab has e.g. //user.name@server01/thesharename /mount-point smbfs rw 0 0 //otheruser.name/othershare /other-mount-point smbfs rw 0 0 and mount /mount-point or mount /other-mount-point works without=20 password prompting. hth, --Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443F7745.9080603>