I have some folder, need anybodies php scripts can create sub folder/files and unlink files.
I do sudo
chown -R apache:apache /var/www/public_html/a
But after that, my ftp user cannot upload files in that folder.
And I do
sudo chown -R yulichika:users /var/www/public_html/a
that ftp can access the folder, but anybodies php scripts with a wrong permisson.
I do not want set the whole folder with 0777, so how to chown 2 users with the permission to operate the same folder? thanks.