Three basic permissions
R Read permission (read)
W Write permission (write)
X Execute permission (execute)
1th bit: File type (d directory,-normal file, L link file)
第2-4位: The owning user right, denoted by U (user)
第5-7位: The owning group permission, expressed in G (Group)
第8-10位: Other user rights, denoted by O (other)
第2-10位: Represents all permissions, denoted by a (all)
Full information: A file that the owning user has read and write execution permissions;
have read and Write permission, no execute permission, other user only Read permission
Change operation permissions
chmod Modify File Permissions command (change mode)
Parameter:-r file and subdirectory do the same permissions operation (recursive recursive)
Example: chmod u+x a.txt
? Use numbers to represent permissions (r=4,w=2,x=1,-=0)
Example: chmod b.txt
RWX with binary notation is 111, decimal 4+2+1=7
R-x with binary notation is 101, decimal 4+0+1=5
Linux Rights Management