I think I’m at the forest for the trees and frustrated as hell. Ok so I want to be able to have chown access to my wp-content by www-data AND my login, call it MyLogin. So wordpress can upload and I can use WinSCP to upload via MyLogin.
I have looked over all the docs and added MyLogin to the www-data group but that doesn’t work…what am I missing. Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
ACL (Access Control Lists) would be easiest.
For Ubuntu:
Next, we need to set up the mount to handle it. If you’re running Ubuntu >= 14.04, you can ignore this next bit:
Configure fstab
edit /etc/fstab. It will look something like this:
After noatime, add “,acl” so it looks like this:
Next, run this so the change takes effect:
Now, let’s check that it’s working:
You should see something like this:
If you don’t, let me know.
Configuring the ACL
Now, on to setting the ACL (changing the path to the path you need, and MyLogin to your actual login):
Now, let’s see if that worked:
If it worked, it will look something like this:
As you can see, you now have full permissions.
Differences for CentOS/Fedora
to install acl, run this:
to edit /etc/fstab, the line needed changing will look like this:
Change it to look like this:
All other things will be the same.