首页 > 其他 > 详细

change user name

时间:2021-05-04 23:33:41      阅读:31      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/zohar-fzh/p/14729903.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!