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.