Hi ,
I report a bug about nfsv3 , the reproducer is below:
---------- ---------
| |-eth0 ------- eth0-| |
| host1 | | host2 |
| (Client)| | (Server)|
| | | |
---------- ----------
Host1 : eth0 192.168.56.7/24
Host2 : eth0 192.168.56.9/24
Host2:
# mkdir –m 777 /nfstest
# cat /etc/exports
/nfstest *(rw,insecure,no_subtree_check,no_root_squash,fsid=1)
# systemctl restart rpcbind
# systenctl restart nfs
Host1:
# mkdir –m 777 /mnt/test
# mount -t nfs -o vers=3 -o noac 192.168.56.9:/nfstest/mnt/test/
# useradd user1
# useradd user2
# groupadd testgroup1
# groupadd testgroup2
# usermod –G testgroup1,testgroup2 user1
# usermod –g testgroup1 user1
# id user1
uid=1001(user1) gid=1002(testgroup1)
groups=1002(testgroup1),1003(testgroup2)
# id user2
uid=1003(user2) gid=1007(user2) groups=1007(user2)
# cd /mnt/test/
# mkdir mainsub
# setfacl -d -m u:user2:rwx mainsub/
# chown user1:testgroup1 mainsub/
# chmod 2755 mainsub/
# runuser -u user1 -g testgroup1 mkdir mainsub/subdir1
# runuser -u user1 -g testgroup2 mkdir mainsub/subdir2
# ls -l mainsub/
drwxrwsr-x+ 2 user1 testgroup1 4096 Mar 6 22:50 subdir1
drwxrwxr-x+ 2 user1 testgroup1 4096 Mar 6 22:50 subdir2
the "drwxrwxr-x+ 2" on subdir2 do not have the flage of "s" which mean
the "SGID" is miss.
Thanks,
Lianwen Sun
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html