Subject: kern/23373: smbfs with assigned UID doesn't work correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <socrtp@soclab.eu.org>
List: netbsd-bugs
Date: 11/05/2003 02:59:00
>Number:         23373
>Category:       kern
>Synopsis:       smbfs with assigned UID doesn't work correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 05 02:00:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Piotr Stolc
>Release:        NetBSD 1.6ZE
>Organization:
soclab
>Environment:
	
	
System: NetBSD s 1.6ZE NetBSD 1.6ZE (S) #2: Wed Nov 5 02:10:33 CET 2003 pkgadm@s:/home2/current/src/sys/arch/i386/compile/S i386
Architecture: i386
Machine: i386
>Description:

On smbfs mounted with -u option owner of the files has no write access to
them, but other users have. When root is the owner - everybody have full
access to these files.

>How-To-Repeat:

root@s:/mnt/soclab# mount_smbfs -u socrtp //socrtp@soclab/pvt /mnt/soclab/pvt

socrtp@s:~$ id
uid=901(socrtp) gid=901(s) groups=901(s),0(wheel)
socrtp@s:/mnt/soclab/pvt$ ls -ld .
drwxr-xr-x  1 socrtp  wheel  16384 Jan  1  1970 .
socrtp@s:/mnt/soclab/pvt$ mkdir test
mkdir: test: Permission denied

pkgadm@s:/mnt/soclab/pvt$ id
uid=900(pkgadm) gid=900(admin) groups=900(admin),0(wheel)
pkgadm@s:/mnt/soclab/pvt$ mkdir test
pkgadm@s:/mnt/soclab/pvt$ ls -ld test
drwxr-xr-x  1 socrtp  wheel  16384 Nov  5 02:47 test


root@s:/mnt/soclab# mount_smbfs //socrtp@soclab/pvt /mnt/soclab/pvt
root@s:/mnt/soclab#
socrtp@s:/mnt/soclab/pvt$ ls -ld .
drwxr-xr-x  1 root  wheel  16384 Jan  1  1970 .
socrtp@s:/mnt/soclab/pvt$ mkdir test
socrtp@s:/mnt/soclab/pvt$ ls -ld test
drwxr-xr-x  1 root  wheel  16384 Nov  5 02:49 test

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: