Linux directory permissions meaning __linux

Source: Internet
Author: User
Tags file permissions

Linux "ls-al" displays directory permissions that differ from file permissions:
Drwxrwxrwx
-rwxrwxrwx
In this case, the row "D" on the directory is a directory, and the next line "-" is a file. In the permission representation of the directory, r is readable, meaning that the directory structure of the directory can be read, and can be understood to show the content when LL. W is writable, meaning that the files under the directory can be added to the check. X represents an executable, which means that the directory can be used as a working directory. What does the working directory mean? The way ☝️ can be understood is to be able to CD to such a directory.
For example:
1. The system has an account named Vbird, and the permissions of a directory are:
Drwxr–r–3 root root 4096 June 08:35. SSH
This vbird does not belong to the user group of this file, only has R permission, therefore cannot carry on the W x operation to this file, therefore, cannot switch to this directory.
2. One account name is Dmtsai, and his home folder has [rwx] permissions on/home/dmtsai,dmtsai for this directory. There is a file named The_root.data in this directory, which has the following permissions:
-rwx--1 root root ... the_root.data.
What is the Dmtsai permissions on this file. Can you delete this file?
First, the permissions for the other group in the The_root.data file are 0, and Dmtsai belongs to other for this file, so Dmtsai does not have any permissions on The_root.data.
Second, this file is in the Dmtsai directory, Dmtsai has [rwx] permissions on its directory, so it can be deleted.

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.