我對 Linux 很陌生,正在嘗試在 opensuse 12.1 上設定 cakephp。我按照 cakephp 網站(部落格教學)上的說明進行操作,很可能會遇到一些權限問題。我將 cakephp 資料夾放在 /srv/www/htdocs 中,然後嘗試使用 localhost/cakephp 存取它,其中顯示
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
但是當我檢查權限時我得到了
Suse:/srv # ls -lR shows sankalp as owner for all the files down the tree.
sankalp@Suse:/srv/www/htdocs> whoami
sankalp
sankalp@Suse:/srv/www/htdocs> ls -l
total 108
drwxrwxrwx 6 sankalp users 4096 Jun 27 12:44 cakephp
-rw-r--r-- 1 sankalp users 73728 Jul 6 10:41 das
-rwxrwxrwx 1 sankalp root 302 Mar 13 2006 favicon.ico
-rwxrwxrwx 1 sankalp root 26 Jun 28 19:04 whoami.php
當 favicon.ico 顯示在瀏覽器中時,我也無法存取 whoami.php。