首页 > 系统服务 > 详细

Linux 权限相关

时间:2015-12-01 01:48:20      阅读:230      评论:0      收藏:0      [点我收藏+]

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

Linux 权限相关

原文:http://10927520.blog.51cto.com/10917520/1718333

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!