Subject: Re: SMBFS
To: Jan Schaumann <jschauma@netmeister.org>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 03/09/2004 13:38:22
In message <20040309184001.GE15902@netmeister.org>, Jan Schaumann writes:
>
>--a+b56+3nqLzpiR9O
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>Bang Jun-Young <junyoung@NetBSD.org> wrote:
>> Jan Schaumann wrote:
>
>> > I'm trying to use mount_smbfs to access a remote Windows share:
>> >
>> > mount_smbfs -I remote.server.name -W campus -u jschauma	\
>> > //jschauma@remote/jschauma /mnt
>> > Password:
>> >
>> > This only succeeds if I do this as root.  As a regular user, I get:
>> > mount_smbfs: unable to open connection: syserr =3D Operation not permit=
>ted
>> >
>> > Tracing it:
>> >    763 mount_smbfs CALL  open(0xbfbfed84,0x2,0x4805429c)
>> >    763 mount_smbfs NAMI  "/dev/nsmb0"
>> >    763 mount_smbfs RET   open 3
>> >    763 mount_smbfs CALL  ioctl(0x3,_IOW('n',0x6a,0x4),0xbfbfedc4)
>> >    763 mount_smbfs GIO   fd 3 wrote 772 bytes
>> > [...]
>> >    763 mount_smbfs RET   ioctl -1 errno 1 Operation not permitted
>>=20
>> Setting sysctl vfs.generic.usermount=3D1 might help.
>
>Sorry, no go.  Same error.
>

You might want to try setting this up to use the automounter.

		--Steve Bellovin, http://www.research.att.com/~smb