I have two directories
/home/user1/htdocs/
/home/user2/htdocs/
I have provided permission to www-data using:
chown -R www-data:www-data /home/user1/htdocs/
chmod -R 755 /home/user1/htdocs/
Then used ACL to provide permission to the site user user1
using:
setfacl -m u:usr1:rwx /home/user1/htdocs/
setfacl -m u:usr1:000 /home/user2/htdocs/
The later one works with permission 000 works but the 1st ACL statement does not work as I could not write to htdocs using user1.
Instead of
You have to run