Linux chmod commands Modify directory permissions number meaning

Source: Internet
Author: User
Tags chmod

The following are examples of the implications of common numbers represented by using absolute mode to modify directory permissions:

Mode Significance
777 All users have read, write, and execute permissions on the file
755 The file owner has read, write, and execute permissions on the file, and group users and other users need read and execute permissions on the file
711 The file owner has read, write, and execute permissions on the file, and group users and other users have execute permissions on the file
644 File owners can read and write files, group users and other users can read files
640 File owners can read and write files, group users can read files, and other users cannot access files

Another common symbolic pattern meaning:

W.H.O. User type Significance
U User The owner of the file
G Other The group associated with the file
O Other All other users
A All Quite with Ugo, all the users

such as Mac Terminal (Class Linux system) modify file Directory command:

Chmod-r o+wx dirname/

Represents a recursive modification dirname the permissions for this folder are writable, and O indicates that this permission is granted to all other users.

-RW ——-(600) Only the owner has read and write permission
-rw-r–r– (644) Only the owner has read and write permission, the group and others only Read permission
-rwx--(700) Only the owner has the right to read, write, execute
-rwxr-xr-x (755) Only the owner has the right to read, write, execute, group and others only read and execute
-rwx–x–x (711) Only the owner has permission to read, write, execute, group and others only execute
-rw-rw-rw-(666) Everyone has access to read and write
-RWXRWXRWX (777) Everyone has access to read and write and execute

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.