Centos7 modify the user name

Lou original system user, to Scrapy, to change the following places, Note: no changes corresponding to the password

1. # vi / etc / passwd

Modify the user name part, part of the user group, the main directory section
2 to modify the user profile of the group

# Vi / etc / group
modify the user name part, part of the user group
3. # vi / etc / gshadow

4. # vi / etc / shadow

   Username part
5. The modified home directory

Mv # / Home / lou / Home / scrapy
----------------

Original link: https: //blog.csdn.net/u012293522/article/details/42396581

Guess you like

Origin www.cnblogs.com/cosmos-wong/p/11456242.html