Answer the question
In order to leave comments, you need to log in
Can one user edit files for another?
I have a user without the ability to login via ssh: www:x:1001:1001::/home/www:/sbin/nologin
Apache and Nginx run under him
And a folder with sites was created for him. /data/wwwroot/ {everything here is under user and group www : www}
But I don't need a root user to edit sites and I created a new one: wwwdev and gave it the group www
#groups wwwdev
wwwdev : wwwdev www
drwxr-xr-x 5 www www 4096 фев 4 05:49 database
-rw-r--r-- 1 www www 550 фев 26 08:35 .env
-rw-r--r-- 1 www www 499 фев 4 05:49 .env.example
-rw-r--r-- 1 www www 61 фев 4 05:49 .gitattributes
Answer the question
In order to leave comments, you need to log in
Why can't I edit files with the wwwdev user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question