Maybe it's trivial question but im trying and still wondering how can i block to possibility to change ownergroup by user if user is owner of that directory.
For example:
Code: Select all
[bryn1u@proton ~]$ mkdir test
drwxrwr-x. 2 bryn1u bryn1u 4096 07-17 14:17 test
Code: Select all
[root@proton bryn1u]# chown -R bryn1u:users /home/bryn1u/test
[root@proton bryn1u]# ls -ld /home/bryn1u/test
drwxrwr-x. 2 bryn1u users 4096 07-17 14:17 /home/bryn1u/test
Code: Select all
[bryn1u@proton ~]$ ls -ld test
drwxrwr-x. 2 bryn1u users 4096 07-17 14:17 test
[bryn1u@proton ~]$ chgrp bryn1u test
[bryn1u@proton ~]$ ls -ld test
drwxrwr-x. 2 bryn1u bryn1u 4096 07-17 14:17 test
[bryn1u@proton ~]$