- Newest
- Most votes
- Most comments
Hi Sarneet C Thanks for your answer. It took me some time to test it myself to understand your answer. What I conclude from your answer and my tests are that POSIX permissions (chown user:groups) works with Fsx for Lustre, even if a user is only member of the group in his list of supplementary groups. ACL's does **not **work for a users' supplementary group memberships. ACL only works for a user's primary group.
So this test shows that users supplementary groups works with POSIX group permission. If a directory has a group set with posix chmod, it works even for a users 6th supplemenatary group.
On a pristine EC2 instance that had not opened or listed /fsx/group6 directory before I tried this:
[root]# useradd demo1
[root]# groupadd -g 1011 -U demo1 group1
[root]# groupadd -g 1012 -U demo1 group2
[root]# groupadd -g 1013 -U demo1 group3
[root]# groupadd -g 1014 -U demo1 group4
[root]# groupadd -g 1015 -U demo1 group5
[root]# groupadd -g 1016 -U demo1 group6
[root]# sudo su demo1
[demo1]$ touch /fsx/group6/testfile2.txt
[demo1]$ ll /fsx/group6
total 1
-rw-rw-r--. 1 demo1 demo1 0 Nov 20 15:54 testfile.txt
-rw-rw-r--. 1 demo1 demo1 0 Nov 20 15:57 testfile2.txt
[demo1]$ ll /fsx/
total 25
drwxrwx---+ 2 root group6 25600 Nov 20 15:57 group6
As it shows, works with posix groups.
Hello,
Since FSx for Lustre doesn't currently support an LDAP integration for upcall, supplementary POSIX groups should be used to control file access. Here's an example where Supplementary groups and ACL do not work and based on ACL rule, access should have been granted:
$ sudo mkdir /mnt/fsx/demo
$ sudo chmod 750 /mnt/fsx/demo
$ sudo setfacl -m g:demo2:rwx /mnt/fsx/demo
$ ls -ld /mnt/fsx/demo
drwxrwxr-x+ 2 root root 14848 Jan 22 14:27 /mnt/fsx/demo
$ getfacl /mnt/fsx/demo
getfacl: Removing leading '/' from absolute path names
# file: mnt/fsx/demo
# owner: root
# group: root
user::rwx
group::rwx
group:demo2:rwx
mask::rwx
other::r-x
$ sudo su - demousr -c "touch /mnt/fsx/demo/testfile"
touch: cannot touch ‘/mnt/fsx/demo/testfile’: Permission denied
In this case, the Access is denied because MDT was not able to discover if demousr is a member of demo2 when MDT validates ACL permissions, because identity_upcall is not working.
Relevant content
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
