当root设置了对所有用户的读取权限时,centos 6.2会拒绝读取权限

前端之家收集整理的这篇文章主要介绍了当root设置了对所有用户的读取权限时,centos 6.2会拒绝读取权限前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在root拥有的Centos 6.2上安装DropBox.
证明dropBox文件夹由root拥有,并具有对所有人的读取权限

“root”用户为所有用户提供读取权限

[root@localhost DropBox]# ls -la
total 436
drwxr--r--. 6 root root   4096 Jul 17 20:01 .
drwxr-xr-x. 3 root root   4096 Jul 11 20:11 ..
-rw-r--r--. 1 root root     29 Jul 17 20:01 .dropBox
drwxr-xr-x. 4 root root 151552 Jul 17 20:03 .dropBox.cache
drwxr-xr-x. 2 root root   4096 Jul 11 19:28 ePubs to Share
drwxr-xr-x. 4 root root   4096 Jul 11 20:14 ePubs to Share (1)
-rw-r--r--. 1 root root 269894 Jun  7  2010 Getting Started.pdf
drwxr-xr-x. 6 root root   4096 Jul 17 20:03 stagbuild
[root@localhost DropBox]# cd ..
[root@localhost DropBoxRoot]# ls -la
total 12
drwxr-xr-x.  3 root root 4096 Jul 11 20:11 .
drwx------. 48 epub epub 4096 Jul 17 20:01 ..
drwxr--r--.  6 root root 4096 Jul 17 20:01 DropBox
[root@localhost DropBoxRoot]#

但是“epub”用户无法查看/读取此目录中的任何文件

cd DropBoxRoot
[epub@localhost DropBoxRoot]$ls -la
total 12
drwxr-xr-x.  3 root root 4096 Jul 11 20:11 .
drwx------. 48 epub epub 4096 Jul 17 20:01 ..
drwxr--r--.  6 root root 4096 Jul 17 20:01 DropBox
[epub@localhost DropBoxRoot]$ls -la DropBox/
ls: cannot access DropBox/stagbuild: Permission denied
ls: cannot access DropBox/Getting Started.pdf: Permission denied
ls: cannot access DropBox/ePubs to Share (1): Permission denied
ls: cannot access DropBox/.: Permission denied
ls: cannot access DropBox/..: Permission denied
ls: cannot access DropBox/.dropBox.cache: Permission denied
ls: cannot access DropBox/ePubs to Share: Permission denied
ls: cannot access DropBox/.dropBox: Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
-????????? ? ? ? ?            ? .dropBox
d????????? ? ? ? ?            ? .dropBox.cache
d????????? ? ? ? ?            ? ePubs to Share
d????????? ? ? ? ?            ? ePubs to Share (1)
-????????? ? ? ? ?            ? Getting Started.pdf
d????????? ? ? ? ?            ? stagbuild
[epub@localhost DropBoxRoot]$

有任何想法吗?

解决方法

对于目录,读取权限是不够的.您还需要执行权限才能进入目录.
原文链接:https://www.f2er.com/linux/395791.html

猜你在找的Linux相关文章