Sign in
Log inSign up
mani nekkalapudi

76 likes

·

549 reads

2 comments

Manh Nguyen Danh
Manh Nguyen Danh
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
mani nekkalapudi
mani nekkalapudi
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
·