getfacl command and Linux file permissions - getting 403 error when accessing Wordpress
Posted
by
tommytwoeyes
on Server Fault
See other posts from Server Fault
or by tommytwoeyes
Published on 2011-03-05T02:17:06Z
Indexed on
2011/03/05
7:26 UTC
Read the original article
Hit count: 554
linux
|permissions
I'm configuring Wordpress for a friend, and I just screwed up the Wordpress directory permissions (I suspect) using setfacl. Webfaction doesn't allow sudo or allow me to change the directory group ownership using chown.
Now it appears that something I did is causing the entire application to give me 403 errors when I try to access it.
The current directory listing looks like this (I set the whole thing to 777 temporarily to try to recover access to it):
drwxrwsr-x+ 6 myusername myusername 4096 Mar 2 07:07 ./
drwxr-xr-x 3 root root 4096 Feb 25 19:48 ../
-rwxrwxr-x+ 1 myusername myusername 286 Mar 2 06:33 gzip.php
-rwxrwxr-x+ 1 myusername myusername 4831 Mar 4 20:02 .htaccess
-rwxrwxr-x+ 1 myusername myusername 397 Feb 25 19:49 index.php
-rw-rw-r--+ 1 myusername myusername 15606 Feb 25 19:49 license.txt
-rw-rw-r--+ 1 myusername myusername 9200 Feb 25 19:49 readme.html
drwxrwsr-x+ 6 myusername myusername 4096 Feb 25 19:49 .svn/
-rwxrwxr-x+ 1 myusername myusername 4337 Feb 25 19:49 wp-activate.php
drwxr-xr-x+ 10 myusername myusername 4096 Mar 4 20:03 wp-admin/
-rwxrwxr-x+ 1 myusername myusername 40283 Feb 25 19:49 wp-app.php
-rwxrwxr-x+ 1 myusername myusername 226 Feb 25 19:49 wp-atom.php
-rwxrwxr-x+ 1 myusername myusername 274 Feb 25 19:49 wp-blog-header.php
-rwxrwxr-x+ 1 myusername myusername 3931 Feb 25 19:49 wp-comments-post.php
-rwxrwxr-x+ 1 myusername myusername 244 Feb 25 19:49 wp-commentsrss2.php
-rwxrwxr-x+ 1 myusername myusername 3485 Feb 25 20:15 wp-config.php
drwxr-xr-x+ 6 myusername myusername 4096 Feb 26 08:52 wp-content/
-rwxrwxr-x+ 1 myusername myusername 1255 Feb 25 19:49 wp-cron.php
-rwxrwxr-x+ 1 myusername myusername 246 Feb 25 19:49 wp-feed.php
drwxrwxr-x+ 9 myusername myusername 4096 Feb 25 19:49 wp-includes/
-rwxrwxr-x+ 1 myusername myusername 1997 Feb 25 19:49 wp-links-opml.php
-rwxrwxr-x+ 1 myusername myusername 2453 Feb 25 19:49 wp-load.php
-rwxrwxr-x+ 1 myusername myusername 27787 Feb 25 19:49 wp-login.php
-rwxrwxr-x+ 1 myusername myusername 7774 Feb 25 19:49 wp-mail.php
-rwxrwxr-x+ 1 myusername myusername 494 Feb 25 19:49 wp-pass.php
-rwxrwxr-x+ 1 myusername myusername 224 Feb 25 19:49 wp-rdf.php
-rwxrwxr-x+ 1 myusername myusername 334 Feb 25 19:49 wp-register.php
-rwxrwxr-x+ 1 myusername myusername 226 Feb 25 19:49 wp-rss2.php
-rwxrwxr-x+ 1 myusername myusername 224 Feb 25 19:49 wp-rss.php
-rwxrwxr-x+ 1 myusername myusername 9655 Feb 25 19:49 wp-settings.php
-rwxrwxr-x+ 1 myusername myusername 18644 Feb 25 19:49 wp-signup.php
-rwxrwxr-x+ 1 myusername myusername 3702 Feb 25 19:49 wp-trackback.php
-rwxrwxr-x+ 1 myusername myusername 3210 Feb 25 19:49 xmlrpc.php
The getfacl output looks like this:
# file: .
# owner: myusername
# group: myusername
user::rwx
group::r-x
group:apache:rw-
mask::rwx
other::r-x
I simply wanted to change the ownership to myusername:apache and the file permissions to 755. I have no idea how to fix the permissions now.
Any help would be really appreciated!
Thanks, Tom
© Server Fault or respective owner