After using Git push, and then pull to the site directory is wrong, chown-r www.www/, then run Chown-r root.root/, and then many services can not run.
Then I asked someone to change the service owner and all the groups, and it looked good on the surface.
Now how to fix this hole 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/
You have changed all the files to root permissions to execute, may cause other user rights can not run their own services, find a change, such as Mysql,nginx
Chown-r Www:www/home/wwwroot/default
/home/wwwroot/default is your website directory
Chown-r Root.root/
You have changed all the files to root permissions to execute, may cause other user rights can not run their own services, find a change, such as Mysql,nginx
Will this result in the machine not being opened?
Should not, in fact, not so serious, encountered so service can not run, see Change the owner on the line, should also not many
Set the directory to the WWW account readable permission
The file belongs to the group of the user to change to and execute nginx PHP user is the same. Trial root execution is a word. Too big a security risk.