ll a.txt
查看 a.txt 的 权限
chmod 修改权限相关的
touch tuluo 创建 tuluo 文件
[root@localhost ~]# ll tuluo
-rw-r--r--. 1 root root 0 11月 30 20:46 tuluo
chmod u+x tuluo
[root@localhost ~]# ll tuluo -rw-r--r--. 1 root root 0 11月 30 20:46 tuluo [root@localhost ~]# chmod u+x tuluo [root@localhost ~]# ll tuluo -rwxr--r--. 1 root root 0 11月 30 20:46 tuluo [root@localhost ~]#
chmod o= w tuluo 改变 权限为 w
chown 拥有者 群组
umask
$UID -gt 大于
id -gn 组名
id -un 用户名
特殊权限 suid sgid sticybit
对应的数值 u ,4 g, 2 o, 1
原文:http://10927520.blog.51cto.com/10917520/1718333