Linux runs differences based on Read permissions and permissions for this folder

Source: Internet
Author: User

Suppose you use LS under Linux. Careful you will find that actually the folder has permission to run. For example:

DRWXRWXR-X CL CL 4096 9 25 14:22.
DRWXR-XR-X CL cl 4096 October 10 16:00. /
Drwxrwxr-x 5 CL cl 4096 September 10:58 algorithm/
Drwxrwxr-x 2 CL cl 4096 September 21:44 temp/


Why?? Check on the Internet to find that is the meaning:

The operational permissions for a folder indicate whether you can run commands under a folder. Assuming that the folder does not have the-X permission, you cannot run any commands on the folder or even CD into the folder. even though the folder still has the-R Read permission (this place is very easy to err, think that having read permission can go into the folder to read the file under the folder).


Assuming that the folder has the-X permission but does not have the-r permission, the user can run the command and be able to access the CD folder. But because there is no Read permission for the folder. So under the folder. Even though you can run the LS command, you still do not have permission to read the document under the folder.


It records, enhances memory!


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Linux runs differences based on Read permissions and permissions for this folder

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.