Bug 6713 - Write by group not working in any 2.6.16.X
Summary: Write by group not working in any 2.6.16.X
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Trond Myklebust
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 03:19 UTC by Dan Ohnesorg
Modified: 2008-03-24 17:11 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.16.any
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Dan Ohnesorg 2006-06-19 03:19:26 UTC
Most recent kernel where this bug did not occur: 2.6.14
Distribution: Debian stable/unstable - not important
Hardware Environment: reproduced on intel and opteron - i386, x86-64
Software Environment: user space nfs server
Problem Description:

Problem is, that a file with group write permission is not writable by this
group.

Steps to reproduce:

Lets have a server called server and client called client, on server
export directory /data/export

server# cat /etc/exports
/data/export              192.168.0.2/255.255.255.255(rw,no_root_squash,sync)

and mount them on client

client# mount -t nfs server:/data/export /mnt/data

than try on client

client# cd /mnt/data
client# echo "Hi" > file.txt
client# chmod g+w file.txt
client# su - someuser
client$ cd /mnt/data
client$ echo "Hi2" >> file.txt
-su: test: Permission denied

this problem occures only with kernel 2.6.16 on client side, after reboot to
2.6.14 the append works great with same configuration. Another important hit
is, that the problem is only in directory, where the nfs tree is mounted, on
subdirectories is everythink working properly. The problem occures only with
user space nfs daemon, kernel nfs is OK, but is not usable for me. While the
problem occured on client side, I think it is related to kernel. I have reported
it to nfs _AT_ lists.sourceforge.net, but there is no response for 14 days.
Comment 1 Andrew Morton 2006-06-19 15:53:01 UTC
That sounds fairly serious.  Some details on how to set up
the userspace NFS server might help.

Also, why can't you use the in-kernel nfs server?
Comment 2 Trond Myklebust 2006-06-20 02:40:41 UTC
NFS with the default AUTH_SYS authentication is limited to 16 groups. That is a
protocol limitation rather than a Linux implementation problem.

It used to be (in 2.4.x kernels) that you could somewhat compensate for that by
putting the NFS groups that interest you as the first 16 in the list.
Unfortunately in 2.6.x kernels someone decided that it was a good idea to sort
the groups list, and so we can no longer use that hack.
Comment 3 Dan Ohnesorg 2006-06-21 05:59:21 UTC
Thank you for reply

Ad setup of user space nfs server, we didn't made any special configuration,
only apt-get install nfs-user-server, edited /etc/exports to this:
# /etc/exports: the access control list for filesystems which may be exported
#       to NFS clients.  See exports(5).
/www              192.168.0.2/255.255.255.255(rw,no_root_squash,sync)
/mnt/backup       192.168.0.2/255.255.255.255(rw,no_root_squash,async)

and restart nfs server, thats all.

Ad using kernel space nfs:
First we need reexport nfs mounted NAS to clients, but kernel space nfs doesn't
know how to do it. Second the NAS is build on OpenNAS and OpenNAS uses only user
space nfs.

Now I can confirm, that the problem is even in 2.6.17. Neil Brown has contacted
me privately, I will send him tcpdump of communication between client and server.
Comment 4 Dan Ohnesorg 2006-06-21 06:51:07 UTC
Sorry, the confirmation in 2.6.17 was made too early, even if the situation is
not perfect, we have got another results. Please wait until we discover exactly
what is changed.
Comment 5 Natalie Protasevich 2007-07-06 22:25:46 UTC
Any update on this?
Thanks.
Comment 6 Natalie Protasevich 2008-03-24 17:11:21 UTC
I suspect the problem has gone away, or been resolved.
Please reopen if this is not the case.

Note You need to log in before you can comment on or make changes to this bug.