An example of Linux Operating System File Permission-general Linux technology-Linux technology and application information. For more information, see the following section. Pay attention to the X permission in permissions, which is especially important.
If the file name is a directory, for example, the. ssh directory:
Drwx ------ 2 root 4096 Feb 10 00:44. ssh
It can be seen that this is a directory, and only root can read, write, and execute. But if it is the style below, can anyone other than root enter this directory?
Drwxr -- r -- 2 root 4096 Feb 10 00:44. ssh
It seems OK! Because there is a readable [r! "Error !』 The answer is that non-root users cannot access the. ssh directory. Why? Because the relationship between x and the directory is very important, if you cannot execute any commands under the directory, then naturally you cannot execute commands such as ls and cd, so ??? What about hip and hip? Playing tricks? Playing tricks? Why? Why ?? Guan ?? Why is it true that Yao Ke is not a hacker? ? Cutting media? Mei Ke's x attribute is open!
Below is a good column:
If my directory is of the following style:
Drwxr-xr -- 1 test1 testgroup 5238 Jun 19 groups/
Can the members of The testgroup group and other persons (others) access this directory?
A: The Archive owner test1 can perform any work in this directory, while the account of the testgroup group, such as test2 and test3, can also access this directory for work, however, you cannot perform write operations in the local directory. Although other has r permissions, others users cannot access this directory because they do not have x permissions.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.