Subject: kern/24987: Weird NFS permissions problem
To: None <gnats-bugs@gnats.NetBSD.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 03/31/2004 15:20:26
>Number: 24987
>Category: kern
>Synopsis: Weird NFS permissions problem
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 31 03:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Mark Davies
>Release: NetBSD 2.0A
>Organization:
>Environment:
System: NetBSD dellc64h2.mcs.vuw.ac.nz 2.0A NetBSD 2.0A (MCS_GEN_LAPTOP) #7: Tue Mar 30 12:28:44 NZST 2004 mark@dellc64h2.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/mnt/src/src/sys/arch/i386/compile/MCS_GEN_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
On an NFS mounted filesystem, I am failing to read files that
should be readable due to group access, if they are not world readable
and they _are_ owned by root.
I believe this is a client end issue - I can reproduce it with the server
being 1.6ZH/i386 or Solaris 9. Clients of 2.0A/i386 and 1.6ZH/i386 fail,
Solaris 9 and 1.6.2/alpha and 1.6W/i386 work.
>How-To-Repeat:
On an NFS mounted filesystem, create a file owned by root, readable
by you and not by world. Try to cat the file, see it fail. Change the owner
to someone not root and not you, cat the file see it work:
dellc64h2% id
uid=1002(mark) gid=24(staff) groups=24(staff),0(wheel),5(operator),20(cs-staff),34(src),73(dept-dba),76(bugs),77(rustuser),1001(comp100),1002(comp200),1003(comp300)
dellc64h2% ls -l
total 1
-rw-r----- 1 root wheel 111 Mar 31 14:25 bar
dellc64h2% cat bar
cat: bar: Bad address
dellc64h2% ls -l
total 1
-rw-r----- 1 root wheel 111 Mar 31 14:25 bar
dellc64h2% ls -l
total 1
-rw-r----- 1 duncan wheel 111 Mar 31 14:25 bar
dellc64h2% cat bar
aksdfhkalsjfhalksdfhas
adsfjkhasdlkfhasdkljfhsadf
dsjkfhadslkfhadslkfhldskfhas
dsfkjhasdflkhadsflkahdsflkjasdh
dellc64h2%
>Fix:
Wish I knew.
>Release-Note:
>Audit-Trail:
>Unformatted: