[Chmod and chown commands under the control of the Linux permissions] --2019-08-09 10:49:48

Original: http://106.13.73.98/__/91/

chmod

A configuration file / directory permissions
naming format:chmod [选项] 文件/目录名
.
Permission categories:
r reading, using the number 4represented
wwritten using the number 2represented
xperformed using the number 1represented
.
Attribution categories:
u the owner
gis a group
oother
aowner
.
Operator:
+ Adding to assign permissions specified category ( for example, a + x + x or allow everyone to perform)
-deletes the specified categories of designated authority
=to redefine the specified permission for the specified category
.
example :
chmod 755 fileto redefine the file permissions for the file: owner rwx, is a group rx, rx other
chmod -R a-w filerecursive delete file All rights w directories and subdirectories

chown

Owner and used to change the file / directory is a set of
command format:chown [参数] 用户名.组名 file
parameter, then use -Rrecursion, the principle above example

Original: http://106.13.73.98/__/91/

Guess you like

Origin www.cnblogs.com/gqy02/p/11325771.html