After getting code using git, all people and groups have changed. Is there a solution?

Source: Internet
Author: User
Now I am using the root account to update the code. Previously, all the users and groups in the kernel. php file are www. now, after the update is complete, it becomes root. Is there any way to keep the changes .:

Now I use the root account to update the code. Previously, all the users and groups in the kernel. php file were www, and now they are changed to root after the update. Is there any way to keep the changes.
:

Reply content:

Now I use the root account to update the code. Previously, all the users and groups in the kernel. php file were www, and now they are changed to root after the update. Is there any way to keep the changes.
:

The simplest way is to switchWwwThe user can pull the code again, or useChown-R www: www.To re-update the owner.

Use the built-in linuxAliasJust map the alias.

Alias wwwgit = 'Su-www-c git'

And then useWwwgitTo replace git.

This is an idea, not tested

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.