Linux Command - Rights Management

Rights Management Command

Command name: chmod
command English intended to: change the permissions mode of a file
path which the command: / bin / chmod
execute permissions: All users
Function: Change the file or directory permissions
Syntax: chmod u / g / o + / - / = r / w / x [filename]
the chmod 777 [filename]
the chmod + U X plus executable permission for the owner
chmod gr user group by subtracting the read access
chmod o = x executable permission for others to impart
rwx 421
switch user
su - username
Here Insert Picture Description
command name: chown
command English original intent: change file ownership
path where the command: / bin / chown
execute permissions: All users
description: change the file or directory owner
syntax: chmod [owner] [filename].
Add user
useradd username
passwd username
command name: chgrp
command English original intent: change file group ownership
command the path: / bin / chgrp
execute permissions: All users
description: change the file or directory belongs to group
syntax:. chmod [user group] [ file name]
Command name: umask
command the path: / bin / umask
execute permissions: All users
Description: permission to view subnet mask
syntax: umask -S
the umask 022 to change the default permissions
-S displays the default permissions to rwx form of
Linux permission rules
the default file created can not be granted permission to perform

Guess you like

Origin blog.csdn.net/weixin_41998682/article/details/89599926