Www-data user does not access wp app folder


#1

Hello, I can not access the app folder of the wordpress installation with the www-data user in the fileZilla, any help?


#2

Hi!

Got the same issue, user has to have root access, any way to change this so www-data also has access?


#4

This isn’t a pretty fix but this is what I do. cd to /opt/easyengine/sites/mysite.com then I chown www-data:www-data app/ I hand over the app folder to my user www-data. Once I’m done transferring files or whatever using the www-data user, I hand back the folder to root by chown root:root app/

For a permanent fix you can use ACLs to give multiple users access to a set of folders. But the above just takes me 2 seconds to do so I never bothered with that.


#5

Is this a confirmed bug?


#6

@arrenato @Goran @msarhan @mikeslv We’ve identified the bug and created an issue for it. This will be fixed most probably in next release itself :slight_smile:


#7

Hi there,

Thank you @msarhan for your tip.

I’ve tried this myself but when I SFTP as www-data I still can’t access the app directory. I’ve set up other users and modified the permissions for the /app directory with no luck as well.

Even when ‘app’ is owned by www-data:www-data I’m still not able to access the folder. Of course I could SFTP in as root but that’s not what I’m looking to achieve, root login is disabled as default for me.

I’ve checked the ownership of /var/lib/docker/volumes/domaincom_htdocs/_data and that too is owned by www-data. I’m confused as to how this is working as a fix for you, but not for me :frowning:

@kirtan any advice?


#8

I did not understand the resolution, I have the same problem.


#9

/opt/easyengine/sites/www.mysite.com/app: open for read: permission denied


#10

I reinstalled everything again
: (
Backup would be very useful


#11

What username are you logging in to SSH & SFTP with?