Group write not working in 2.6.16.X
Subsystems (2)
I have found strange problem with nfs after upgrading from kernel 2.6.14 to 2.6.16.
System on both ends is Debian Sarge with all patches. We use user space nfs server.
Problem is, that a file with group write permission is not writable by this group, 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.
Is this bug or are oldes kernels buggy and now is the situation corrected?
cheers
dan
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 20 lines · On Monday June 5, [email protected] wrote:
I have found strange problem with nfs after upgrading from kernel 2.6.14 to 2.6.16.
System on both ends is Debian Sarge with all patches. We use user space nfs server.
Problem is, that a file with group write permission is not writable by this group, 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/datathan try on client
Quoted 7 lines
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
Could you please re-run the experiment with calls to 'groups' and 'ls -l file.text' and suitable points so that we can see that someuser really does have group write.
Can you collect a tcpdump trace while this is happening.
e.g.
tcpdump -w /tmp/trace -s 1500 host SERVER and host CLIENT and port 2049
and compress/attach /tmp/trace.
Thanks,
NeilBrown
Quoted 8 lines
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.
Is this bug or are oldes kernels buggy and now is the situation corrected?
Quoted 7 lines
cheers
dan_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs