777 permission is a common file permission setting under Linux and Unix operating systems. It means that all users have read, write and execute permissions on files. So what does 777 permission mean in Linux system? Let’s introduce it in detail through this article.
In the Linux system, the permissions of files or directories can be divided into three types:
R:4 Readable
W:2 can be written
X:1 Execute
-: Corresponding value 0
The numbers 4, 2 and 1 represent read, write and execute permissions
rwx=4 2 1=7 (can read and write)
rw=4 2=6 (readable, writable, not executable)
rx=4 1=5 (readable, runnable, but not writable)
So the highest authority is 777: (4 2 1)(4 2 1)(4 2 1)
The first 7: indicates the permissions of the owner of the current file, 7=4 2 1 readable, writable and executable permissions;
The second 7: indicates the group permissions of the current file, 7=4 2 1 readable, writable and executable permissions;
The third 7: indicates the permissions outside the group of the current file, 7=4 2 1 readable, writable and executable permissions.
The above is the detailed content of What does 777 permission mean in Linux system?. For more information, please follow other related articles on the PHP Chinese website!