"Go" Linux View and modify file permissions and related

Source: Internet
Author: User

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

Related Article

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.