SUID
GUID
Sticky
r
w
x
r
w
x
r
w
x
文件类型位 特别访问位 user特权位 group others
我们可以用命令chmod对0~12位进行修改。chmod的语法:chmod [options] octal-mode file-list chmod [options] symbolic-mode file-list
常用的参数是-R和-f。-R:递归修改或设置文件、目录及其子目录的访问特权;-f:强调改变文件访问特权(如果是文件的拥有者,刚不会得到任何错误信息)。
symbolic-mode格式为,其中who、oprator、privilege的可能取值如下表:
Who
Operator
Privilege
u User
+增加特权
r 读
g Group
-删除特权
w 写
o Others
=设置特权
x 执行/搜索
a All