Chown-Rwww.www with git push, then pulled to the site directory to write the error, chown-R www. www/, and then run chown-R root. root/, then many services can not run.
Then I asked someone to help me change the service owner and all groups. it looks good on the surface.
How can we fix this problem as much as possible?
Reply to discussion (solution)
Chown-R www: www/home/wwwroot/default
/Home/wwwroot/default is your website directory
Chown-R root. root/
In this way, you can only execute all files with the root permission, which may cause other users to be unable to run their own services. find a new one, such as mysql and nginx.
Chown-R www: www/home/wwwroot/default
/Home/wwwroot/default is your website directory
Chown-R root. root/
In this way, you can only execute all files with the root permission, which may cause other users to be unable to run their own services. find a new one, such as mysql and nginx.
Will this cause machine failure?
It should not, but it is not that serious. if the service cannot be run, you just need to change the owner.
Set the directory to read the www account.
Change the owner of the file group to be the same as that of nginx php. If you try to run the command as root, it is a slave. High security risks