Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2004 18:49:46 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        "HOLLOW, CHRISTOPHER" <christopher.hollow@cgi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mount a smb filesystem
Message-ID:  <20040207184946.0652058c@it.buh.cameradicommercio.ro>
In-Reply-To: <40240DFA.3020608@cgi.com>
References:  <009c01c3ecf6$17aa69e0$0701a8c0@darryl> <40240DFA.3020608@cgi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 06 Feb 2004 16:58:18 -0500
"HOLLOW, CHRISTOPHER" <christopher.hollow@cgi.com> wrote:

> Try:
> 
> 
> //servername/sharename /mountdirectory smbfs 
> username=windowsuserename,password=windowspassword 0 0

On my 5.2CURRENT:

1. with one of the following in fstab:
//itetcu@fnan/d /vol/fnan/d smbfs  rw,noauto,username=itetcu,password=q  0 0
//itetcu@fnan/d /vol/fnan/d smbfs  rw,noauto,password=q  0 0
//fnan/d /vol/fnan/d smbfs  rw,noauto,username=itetcu,password='q'  0 0
//fnan/d /vol/fnan/d smbfs  rw,noauto,username=itetcu,password=qcc  0 0
etc.

I get:
itetcu@it> /tmp [18:38:45] 0
 # mount /vol/fnan/d
smbfs: -o username=: option not supported

Having in fstab:
//itetcu@fnan/d /vol/fnan/d     smbfs   rw,noauto 0 0
and in /usr/local/etc/nsmb.conf :
[FNAN:ITETCU:D]
password=q
results in:
itetcu@it> /tmp [18:42:22] 0
 # mount /vol/fnan/d
Password:

However, if I have the password in /root/.nsmbrc, the mount /vol/fnan/d
doesn't promt for password. So it seems that entries in
/usr/local/etc/nsmb.conf aren't used as defaults, but only overrides the
entries in ~/.nsmbrc.

 
> HTH,
> 
> Christopher Hollow
> 
> 
> Darryl Hoar wrote:
> 
> >Greetings,
> >If you put a line like:
> >
> >//guest@myserver/misc       /test      smbfs     ro,noauto     0     0
> >
> >in /etc/fstab, is there a way to specify the pasword so that when you
> >mount the filesystem, it doesn't prompt for the password ?
> >
> >I see that mount_smbfs uses .nsmbrc, but that has no effect when
> >you use fstab.
> >
> >any help greatly appreciated.
> >
> >-Darryl


-- 
IOnut
Unregistered ;) FreeBSD user



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040207184946.0652058c>