Subject: SMBFS
To: None <netbsd-users@netbsd.org, current-users@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: current-users
Date: 03/08/2004 17:00:26
--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
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 permitted
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
$ ls -l /dev/nsmb0
crw-rw-rw- 1 root wheel 98, 0 Mar 8 15:20 /dev/nsmb0
Anyway, so as root I can mount the share:
df(1) shows it mounted, and I can copy files to it etc. But I can't
ls(1) it:
$ ls -l
ls: .: Invalid argument
$ ls -l file
-rwxrwxrwx 1 jschauma wheel 137837347 Mar 8 16:37 file
And I can't unmount the filesystem either, the filesystem seems busy,
even though nothing has, as far as I can determine, a filehandle open.
Forcing the unmount just crashed my system.
This is a -current kernel (1.6ZC).
Does anbody know what's going on or if there's anything I'm doing wrong?
-Jan
--=20
"Ford," he said, "you're turning into a penguin. Stop it."
--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFATOz6fFtkr68iakwRAk+6AKCeQHep1ACZH0JJ2EHq1P2VhNq+RgCgy1ZZ
0rEnJa08PRv5nNuJz2n6Ws4=
=16Gq
-----END PGP SIGNATURE-----
--bg08WKrSYDhXBjb5--