####################################
# Rights Management directive chmod CHGRP Chown #
# Modified time: 20160529 #
####################################
------------------------------------------------------------------
chmod
The basic rights of Linux files are divided into user/group/others three identities each have Read/write/exectue permissions
-Rwx rwx rwx: First expression file type [d for directory;-for file; l for link file],
The first group is the file owner, the second group is group permissions, and the third group is for other users
R is read permission, W is write permission, X is execute permission, and the digital 421来 is usually used to assign to Rwx,r=4;w=2;x=1.
That is, 5 represents r+x (4+1) and 7 represents r+w+x (4+2+1).
chmod u=rwx,g=rwx,o=rwx filename
Permissions can be set directly via U (user), G (group), O (Others), a (all),
You can also increase or decrease the corresponding permissions by U+r/g-w.
chmod [-r] XYZ filename
[-R] iterates over all subdirectories or files in the directory,
XYZ represents permissions, such as setting 777 to give RWXRWXRWX permissions, and 640 giving rw-r-----permissions.
------------------------------------------------------------------
Chgrp/chown:
The file has the corresponding user, group,
CHGRP [-r] GroupName filename
Chown [-r] Username filename
[-R] downward recursive loop modification
Modify Groupname,chown Modify username by chgrp
------------------------------------------------------------------
Chmod;chgrp;chown