http://blog.sina.com.cn/s/blog_986a65250102vd5a.html

Linux 系统中采用三位十进制数表示权限,如0755, 0644.

ABCD

A- 0, 表示十进制
B-用户
C-组用户
D-其他用户

 

---  ->   (no excute no write ,no read)
--x  ->   excute, (no write, no read)
-w-  ->   write 
-wx  ->   write, excute
r--  ->   read
r-x  ->   read, excute
rw-  ->   read, write 
rwx  ->   read, write excute

 

0755->即用户具有读/写/执行权限,组用户和其它用户具有读写权限;

0644->即用户具有读写权限,组用户和其它用户具有只读权限;

 

一般赋予目录0755权限,文件0644权限。


Logo

更多推荐