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;
Drwxr-xr-w
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--
DRW-------
644 drw-r--r--
666 drw-rw-rw-
DRWX------
744 drwxr--r--
755 Drwxr-xr-x
777 DRWXRWXRWX
Change owner of File
Chown User: User group filename
For example: Chown tctadmin:tctgroup Test.xls