Answer the question
In order to leave comments, you need to log in
Why is the file being read with 110 rights to the directory?
I set 110 rights to the directory /var/www/html/
In the html directory there is a file info.php, with 440 rights
In the terminal I type "cat /var/www/html/info.php" and get the file displayed.
Why was the contents of the file displayed, in other words, the file was read, if for the directory I set the rights only to execute, and not to execute and read?
Answer the question
In order to leave comments, you need to log in
The x
attribute on a directory allows access to files within it. The r
attribute on a file allows the file to be read.
The attributes 110 and 440 you set allow the file to be read by root, the file's owner, and the group.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question