i am working on Debian10 with php8 fpm + apache2
, I've created a new user with a group username:username
, and i've set a home directory for this user located at
/home/username/www
of course i've chmod -R
all the folders and files to username:username
, before it was www-data when the files was inside /var/html
so basically i have a small script trying to write a cache folder but it is not working when i chmod the folders to username:username , its only work if i chmod the folders to www-data ?
the cache folder chown 755 , and it working fine if owned by www-data
not username
is it possible to allow username
has a write permission like www-data
?
PS : username is an example for the real one