Answer the question
In order to leave comments, you need to log in
How to edit and create a file as root without changing the owner of the files in the folder?
The task is quite simple, but I would like full automation.
And so the essence of the problem
On the server, employees work as root
But each site has its own group and user -линка /var/www/site.ru/web
-реальная /var/www/client1/web3/web
Respectively client1 and web3 group and user, respectively.
# ls -la
drwxr-xr-x 23 web3 client1 4096 Aug 9 00:18 web
Answer the question
In order to leave comments, you need to log in
The obvious solution is to take away the root of the law. Let them work from users of projects.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question