Linux permission string rwxr-xrw-corresponds to the octal permission number __linux

Source: Internet
Author: User
Tags file permissions

Under Linux, when you view a list of detailed properties for all files under a path (LS-L) or (ll), you see the file's operation permissions, similar to the "Drwxr-xr-x" string.

D: First digit indicates file type
D folder
-Common documents
L Links
B Block Device file
P Pipeline File
C Character device file
S set interface file

RWX: 第2-4位 represents the permissions that the owner of this file has. R is read, W is write, X is performed

R-x: 第5-7位 represents permissions for users of the same group as this file owner

R-x: 第8-10位 represents the permissions that other users have

Typically, three digits are used to represent the read, write, and execute permissions of a file:

Executive: 1

Written to: 2

READ: 4 for example;


RWX 4+2+1 7 All rights

R-x 4+1 5 Read and Execute permissions, no Write permissions

R-w 4+2 6 Read and Write permissions, no Execute permissions

Specific use:

chmod 766 filename

Common Linux file permissions:

444 r--r--r--
644 drw-r--r--
666 drw-rw-rw-
744 drwxr--r--
755 Drwxr-xr-x

Change owner of File

Chown User: User group filename

For example: Chown tctadmin:tctgroup Test.xls

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: 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.