After I set the permission to have both groups added to different user I am still not able to change the permission for directory and files.
id adminOne
uid=495(adminOne) gid=492(apps) groups=492(apps),5002(shared)
id adminTwo
uid=7376(adminTwo) gid=5002(shared) groups=5002(shared),492(apps)
If I log in with adminOne I changed a shared folder such as test
...
adminOne@UnixEB: chmod -R 777 test
chmod: changing permissions of `test': Operation not permitted
adminOne@UnixEB: ll
drwxrwx--- 7 adminTwo shared 4096 Nov 30 11:40 test
why I cannot change the permission when I already set the owner to both groups?
SELinux
enabled? What is the output ofgetenforce
? – Abhik Bose Nov 30 '17 at 18:08-R
option? – Abhik Bose Nov 30 '17 at 18:17chmod
permission. So one solution is change the group user as owner and the owner as group user withsudo
right. Please update with the result. – Abhik Bose Nov 30 '17 at 18:32