change user name

2021/5/4 18:25:20

本文主要是介绍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

 



这篇关于change user name的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程