2 comments
·Jul 22, 2022
Jul 22, 2022
Thanks for great article! I have a question:
Read(r)- To read the contents of a file or a directory
Execute(x)- Run or execute a file or view the contents of a directory
What's the difference betwwen two kinds of read the contents?
2
·
·1 reply
Author
·Jul 23, 2022
Thanks for reading Danh Mạnh Nguyễn!
For a directory, both the read(r) and execute(x) permissions are required to read its contents. This is true for the write permissions as well.
In short, to perform any actions on a directory like listing the contents(read), writing/renaming/deleting a file in it, we need execute (x) permissions for that user or group.
I'll update the post to highlight this particular point. Thanks again for commenting!
1
·