如何在centos中更改用户名root? [英] how to change username root in centos?
本文介绍了如何在centos中更改用户名root?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认的centos用户名是root。所以我想更改root
,但收到此错误消息
The default centos username is root .So I want to change root but i get this error message
#usermod -l newuser root
**usermod: user root is currently used by process 1**
推荐答案
您不能使用 usermod
来更改当前已登录或正在运行进程的用户。
You cannot use usermod
to alter a user currently logged or having processes that are running.
您需要首先创建其他用户。
You need first to create nother user.
这篇关于如何在centos中更改用户名root?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文