Original: http://106.13.73.98/__/91/
chmod
A configuration file / directory permissions
naming format:chmod [选项] 文件/目录名
.
Permission categories:
r
reading, using the number4
represented
w
written using the number2
represented
x
performed using the number1
represented
.
Attribution categories:
u
the owner
g
is a group
o
other
a
owner
.
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 file
to redefine the file permissions for the file: owner rwx, is a group rx, rx other
chmod -R a-w file
recursive 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-R
recursion, the principle above example
Original: http://106.13.73.98/__/91/