其他分享
首页 > 其他分享> > change user name

change user name

作者:互联网

1.Reboot your computer and login as  root

2.Open a terminal and Use blow command to change your username

usermod  -l newname oldname

3.(Optional)Now you already changed your username,but your home folder name still are “/home/oldname”,if you also want to change /home/oldname to /home/newname just run below command
usermod -m -d /home/newname newname

4.Note:Of course you can combine step 2 and step 3 using below command

usermod -m -d /home/newname -l newname oldname

 

 

标签:name,newname,command,user,home,your,change,oldname
来源: https://www.cnblogs.com/zohar-fzh/p/14729903.html