Chown, which is the change owner
Such as:
Hadoop-1.2.1.tar.gz the original owner as a Hadoop user, now change its owner to root:
========================================================================
chmod, which is the change mode
There are 10 properties for a Linux file or directory:
First is the first attribute, "horizontal line" represents the file, "D" represents the directory
The remaining nine attributes, divided into three groups, each set of three properties: Read (R), write (W), execute (x). These three groups represent the permissions of the owner of the file (directory), the permissions of the user with the group, and the other user's rights.
And the weights of the r,w,x are 4,2,1, respectively.
So 770 represents-rwxrwx---
Example:
Another way to change properties is to use symbols
U on behalf of the owner (user), G for the group User (group), O for other users (others), A for all users (all)
Example:
Permissions for Linux files and directories (Chown, chmod)