What is the difference between Linux 775 and 777 permissions who give an example

Source: Internet
Author: User
What is the difference between Linux 775 and 777 permissions who give an example


Reply to discussion (solution)

Read permission R = 4
Write Permission W = 2
Execute Permissions x = 1

775 these three digits represent the rights of the owner, group user, and other user.
For example:
7 owner has read, write, execute permissions
7 Groups of users have read, write, execute permissions
5 other users have read, execute permissions (4+1 = 5)

The difference between 777 and 775 is
Other users have write permissions, and 775 does not.

As an example:
File A, permission is 775
Root is the owner
Www-data is a group of users
Ooo is another user

So
Root,www-data,ooo can read and execute to file a.
Root,www-data can write to file a.
Ooo cannot write to file a.

If it's 777,
Three users can read, write, execute file a


You can enter ls-al on the Linux terminal, you can see such as:
-rwx-r--r--(altogether 10 parameters)
The first one has nothing to do with chmod.
2-4 parameter: belongs to user
5-7 parameter: belongs to group
8-10 parameter: belongs to others
And then it's simple.:r==> readable w==> writable x==> executable
R=4 w=2 X=1
So 755 stands for rwxrwxr-x.
777 on behalf of RWXRWXRWX

You can???. , use the chmod command to modify the limit, and the Chown command?

Read permission R = 4
Write Permission W = 2
Execute Permissions x = 1

775 these three digits represent the rights of the owner, group user, and other user.
For example:
7 owner has read, write, execute permissions
7 Groups of users have read, write, execute permissions
5 other users have read, execute permissions (4+1 = 5)

The difference between 777 and 775 is
Other users have write permissions, and 775 does not.

As an example:
File A, permission is 775
Root is the owner
Www-data is a group of users
Ooo is another user

So
Root,www-data,ooo can read and execute to file a.
Root,www-data can write to file a.
Ooo cannot write to file a.

If it's 777,
Three users can read, write, execute file a



Actually, my question is,
7 owner has read, write, execute permissions
7 Groups of users have read, write, execute permissions
5 other users have read, execute permissions (4+1 = 5)
How to know if he owns or is a group of users or other users ... For example, an FTP group user or another user?

LS-LT filename
The first two are the owner and the group user.

LS-LT filename
The first two are the owner and the group user.


[Root@iz23340us9qz home]# ls-lt wwwroot/
Total Dosage 4
drwxrwxrwx 4 www www 4096 September 20:39 default
[Root@iz23340us9qz home]#

I don't know how to group users or other users .....

drwxrwxrwx 4 www www 4096 September 20:39 default
The red is the owner, the blue is the group user, and not the other users within the two.

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