Permissions
Permissions
I messed up my permissions (ubuntu).
I used this script to fix everything: viewtopic.php?f=20&t=15671
But I still can't edit themes (admin) + allow plugin/theme updates (www-data) at the same time (on Wordpress installs). I'm constantly switching between admin + www-data (e.g. sudo chown -R www-data:www-data public_html)
I've tried almost every example on stackoverflow and nothing seems to work + spun up a new install of vestacp to reverse engineer the permissions.
How can I set both to have write permissions (w/o opening myself up to attacks)?
Please help!
Isaac
I used this script to fix everything: viewtopic.php?f=20&t=15671
But I still can't edit themes (admin) + allow plugin/theme updates (www-data) at the same time (on Wordpress installs). I'm constantly switching between admin + www-data (e.g. sudo chown -R www-data:www-data public_html)
I've tried almost every example on stackoverflow and nothing seems to work + spun up a new install of vestacp to reverse engineer the permissions.
How can I set both to have write permissions (w/o opening myself up to attacks)?
Please help!
Isaac
Re: Permissions
How do I give www-data write access to admin? (guessing that is where I've gone wrong?)
I have a server that works (Sydney) & a server that doesn't (Phoenix) --> I can't upload plugins...:
Sydney
—
751 web
551 domain
751 pubic_html
775 wp-content
dr-xr-x--x 9 admin admin 4096 Apr 21 2016 domain.com.au
drwxr-x--x 5 admin admin 4096 Feb 26 06:14 public_html
-rw-r--r-- 1 admin admin 2898 Feb 26 06:14 wp-config-sample.php
drwxrwxr-x 9 admin admin 4096 Mar 4 13:06 wp-content
Phoenix
—
751 web
551 domain
751 pubic_html
775 wp-content
dr-xr-x--x 9 admin admin 4096 Oct 16 13:42 domain.net
drwxr-x--x 5 admin admin 4096 Mar 2 13:31 public_html
-rw-r--r-- 1 admin admin 2898 Mar 2 13:31 wp-config-sample.php
drwxrwxr-x 6 admin admin 4096 Feb 10 14:59 wp-content
Could I be missing something obvious?
I have a server that works (Sydney) & a server that doesn't (Phoenix) --> I can't upload plugins...:
Sydney
—
751 web
551 domain
751 pubic_html
775 wp-content
dr-xr-x--x 9 admin admin 4096 Apr 21 2016 domain.com.au
drwxr-x--x 5 admin admin 4096 Feb 26 06:14 public_html
-rw-r--r-- 1 admin admin 2898 Feb 26 06:14 wp-config-sample.php
drwxrwxr-x 9 admin admin 4096 Mar 4 13:06 wp-content
Phoenix
—
751 web
551 domain
751 pubic_html
775 wp-content
dr-xr-x--x 9 admin admin 4096 Oct 16 13:42 domain.net
drwxr-x--x 5 admin admin 4096 Mar 2 13:31 public_html
-rw-r--r-- 1 admin admin 2898 Mar 2 13:31 wp-config-sample.php
drwxrwxr-x 6 admin admin 4096 Feb 10 14:59 wp-content
Could I be missing something obvious?