In RH124 ch07 - Quiz:Interpret Linux File System Permission.
For last question,
6. | Which files can the operator2 user delete? |
Answer mentioned as None of the files. However Option B is posible right as there is no sticky bit set on directory, Hence others with write permission can delete the file right. Kindly explain the right one or if anything i am misunderstood on this question.
Hi @whoami24 ,
Thanks for reaching out!
I think answer to the quiz question given is correct.
When deleting files, the directory permissions are used, not the file permissions. Therefore, even if operator2 has write access to the files themselves, they cannot delete them if they do not have write access to the directory.
hi @whoami24 ,
we need to have write and execute permissions on the directory to modify it's content and also we need to have write permission on the file itself to delete it from file system.
Thank you
Hi @whoami24 ,
Thanks for reaching out!
I think answer to the quiz question given is correct.
When deleting files, the directory permissions are used, not the file permissions. Therefore, even if operator2 has write access to the files themselves, they cannot delete them if they do not have write access to the directory.
Yes ! I missed that Thanks for your reply and your time!
hi @whoami24 ,
we need to have write and execute permissions on the directory to modify it's content and also we need to have write permission on the file itself to delete it from file system.
Thank you
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.