Chown-r www.www/

Source: Internet
Author: User
Tags using git
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.