1. Privilege level: 10 bits Total
-rw-r--r--1RootRoot0 08-11 01:45AA
First bit: Represents the file type -Normal file DCatalog Files L Link File
Nine guests Master Permission u Group Permissions GOther people rights o
RRead4WWrite2xperform 1
2. Modify Permissionschmod command name: chmod (Modify permission) command English original: Change the permissions mode of a file command where the path:/bin/chmod Execute permissions: All user function Description: Modify permissions using method: chmodu+xAA Owner plus execute permission for AA fileschmodU-xAAchmodg+x,o+wAAchmodu=rwxAA
chmod755AAchmod644AA
3, the meaning of the permission (1) The meaning of the permission to the file R: Read the contents of the fileCat MoreHeadTailW: Edit, add, modify file contentsVIEchoBut does not contain delete files x: Executable /tmp/11/22/abc ----
(2) The meaning of permissions to the directory R: can query the directory under the file name lsW: has permission to modify the directory structure. such as creating new files and directories, deleting files and directories under this directory, renaming files and directories under this directory, cutting TouchRMMVCPx: Access to the directory CD
4. Owner and Genus Group Command chown command name: Chown Command English Original: Change file ownership command path:/bin/chown Execute permissions: User
ChownUser namefile name Change File ownerChownUser1AA user1 must existChownUser1:user1AA Change the genus of the owner at the same time
UseraddUser name Add UserpasswdUser name Set User Password
From for notes (Wiz)
Basic use of the command line (permissions)