1. View: ls-l [filename]
2. Modifications
2-1. Writing method chmod [who] [+][-][=] [mode]
who note: U represents the owner of the file, G indicates the group to which the file belongs, o means others, and a means everyone
Compliance Description: + means add permission,-Indicates reduced permissions, = means overwrite original permissions
Mode Description: R for Read permission, W for write permission, x for executable permission
Example: chmod g+w temp.bak for adding write permissions to all groups for Temp.bak files
2-2. Digital Law
Numerical Description:-Indicates no permission, r corresponds to 4,w corresponding to 2,x corresponds to 1, memory; rwx corresponds to 421
Example: 765 corresponds to-rwxrw-r-x, the first-indicates that the file type is a file, independent of permissions, the latter three groups: 7 corresponds to rwx,6 corresponding rw-,5 corresponding r-x
Execute chmod 765 Temp.bak to change Temp.bak file permissions to-rwxrw-r-x
3. Supplement: The directory must have executable permissions to view or access the directory.
Linux View and modify file permissions