Give write access to www-data and another user to a folder

1

My question is similar to this.

I have a custom logs folder at public_html/logs/

I need Apache (PHP scripts) to be able to write to that folder.

I also need FTP user myuser to able to read/write on that folder.

Doing the following command doesn't work: chown -R myuser:www-data logs

Note: logs/ is currently have 755 permission.

Any ideas?

IMB

Posted 2018-05-30T14:30:31.057

Reputation: 4 845

Answers

2

For those who care, this appears to be a simple permission mistake. All that's needed is to set permission to 775 instead of 755.

IMB

Posted 2018-05-30T14:30:31.057

Reputation: 4 845