Centos
當 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]$
有任何想法嗎?
對於目錄,讀取權限是不夠的。您還需要執行權限才能進入目錄。