What is the difference between linux775 and 777? for example, what is the difference between linux 775 and 777? for example
Reply to discussion (solution)
Read permission r = 4
Write permission w = 2
Execution permission x = 1
775 these three numbers represent the permissions of the owner, group users, and other users.
For example:
7. The owner has read, write, and execution permissions.
Seven groups of users have read, write, and execute permissions
5 Other users have read and execute permissions (4 + 1 = 5)
The difference between 777 and 775 is that
Other users have the write permission, but 775 does not.
For example:
File A. The permission is 775.
Root is the owner
Www-data is a group of users
Ooo is another user
So
Root, www-data, and ooo can read and execute file.
Root, www-data can be written to file.
Ooo cannot write data to file.
If it is 777
All three users can read, write, and execute file.
You can enter ls-al on the linux Terminal, as shown in the following figure:
-Rwx-r -- (a total of 10 parameters)
The first parameter is irrelevant to chmod.
2-4 parameters: belong to user
5-7 Parameter: belongs to group
8-10 parameter: belongs to others
The following is simple: r ==> readable w ==> writable x ==> executable
R = 4 w = 2 x = 1
So 755 represents rwxrwxr-x
777 represents rwxrwxrwx
You can go ??? Run the chmod command to modify the chmod? Limit, and chown command? Modify? Success ,? Use?
Read permission r = 4
Write permission w = 2
Execution permission x = 1
775 these three numbers represent the permissions of the owner, group users, and other users.
For example:
7. The owner has read, write, and execution permissions.
Seven groups of users have read, write, and execute permissions
5 Other users have read and execute permissions (4 + 1 = 5)
The difference between 777 and 775 is that
Other users have the write permission, but 775 does not.
For example:
File A. The permission is 775.
Root is the owner
Www-data is a group of users
Ooo is another user
So
Root, www-data, and ooo can read and execute file.
Root, www-data can be written to file.
Ooo cannot write data to file.
If it is 777
All three users can read, write, and execute file.
In fact, my problem is
7. The owner has read, write, and execution permissions.
Seven groups of users have read, write, and execute permissions
5 Other users have read and execute permissions (4 + 1 = 5)
How can I know whether a user owns a group user or another user ........... For example, are FTP group users or other users?
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 Usage 4
Drwxrwxrwx 4 www 4096 September 26 20:39 default
[Root @ iZ23340us9qZ home] #
I don't know how to group users or other users .....
Drwxrwxrwx 4 www 4096 September 26 20:39 default
Red indicates the owner, blue indicates the group user, and other users are not in the group.