More mount_smbfs

Jan Grant Jan.Grant at bristol.ac.uk
Sun Aug 10 11:28:25 PDT 2003


On Thu, 7 Aug 2003, Brandon Fosdick wrote:

> Peter Radcliffe wrote:
> > With this in /etc/fstab;
> >
> > //pir at rock/pir/ /mount/point smbfs rw,noauto,nodev,nosuid,-N,-I=rock.domain 0 0
> >
> > and this in /etc/nsmb.conf;
> >
> > [ROCK:PIR]
> > password=<secret>
> >
> > it works fine for me. I use /usr/local/etc/rc.d/smbfs.sh to do the
> > actual mounting which might not be needed anymore.
> >
> > The thing in the square brackets should be the server name and username.
>
> No dice. The problem that I keep running into is that mount_smbfs never
> looks in any of the nsmb.conf files. If I use addr in nsmb.conf and
> don't specify -I it tells me it can't get the server address. If I use
> workgroup instead of -W I get an authentication error. -N also produces
> an authentication error. It only works if I put everything on the
> command line and give it the password manually. Plaintext vs scrambled
> password doesn't seem to make a difference.

FWIW, I've been using mount_smbfs (from a separate startup script) since
before it was a "part of" stable, with a /root/.nsmbrc file.

If you're using that startup script, you ought to be aware that the HOME
environment variable isn't set when mount_smbfs is invoked at boot, so
it looks for /.nsmbrc rather than under /root/.



-- 
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/
stty intr ^m



More information about the freebsd-stable mailing list