Linux View and modify file permissions and related to view file permissions: In Terminal input: Ls-l xxx.xxx (xxx.xxx is the file name) then there will be similar information, mainly these:-rw-rw-r--there is a total of 10 digits: The first one-represents the type The middle that three rw-is represented by the owner (user) and then that three rw-represents the group (group) finally that three r--represents the other person (other) and then I'll explain the back 9 digits: R indicates that the file can be read (re AD) W means that the file can be written (write) x indicating that the file can be executed (if it is a program)-indicating that the corresponding permission has not been granted right now it's time to say modify file permissions in Terminal input: chmod o+w xxx.xxx means to give someone else to write xxx.xxx this file The permission chmod go-rw xxx.xxx means to delete the read and write permissions of the group and others in xxx.xxx where: U represents the owner (user) G for the owner's group (groups) O on behalf of others, but not u and G (Other) A For all people, also is to include U,g and O r to indicate that the file can be read (read) w indicates that the file can be written (write) x indicates that the file can be executed (if it is a program) where: RWX can also use numbers instead of R------------4 W-----------2 X------------1-------------0 Action: + means add permission-means delete permission = means to make it the only permission when everyone understands the above, then we often have some of the following permissions are easy to understand:-RW------- (600) Only the owner has read and Write permissions-rw-r--r--(644) Only the owner has read and write permissions, and the group and others have only Read permissions-rwx------(700) Only the owner has read, write, execute Permissions-rwxr-xr-x (755) Only the owner has read, write, execute permissions, groups and other people only read and Execute Permissions-rwx--x--x (711) Only the owner has read, write, execute permissions, groups and other people only execute the permissions-rw-rw-rw-(666) Everyone has permission to read and write-rwxrwxrwx (777) Everyone has access to read and write and execute
Transferred from: http://www.cnblogs.com/wenqiangwu/archive/2013/09/12/3317030.html
"Go" Linux View and modify file permissions and related