心理

当前位置 /首页/完美生活/心理/列表

centos7怎么创建root账户

centos7怎么创建root账户

linux创建root用户步骤如下:

1、添加用户:adduser phroot

2、设置密码:passwd phroot

3、输入密码:!#%12122121

4、加入用户组:usermod -a -G wheel phroot

5、为sudoers赋编辑权限: chmod -v u+w /etc/sudoers

6、编辑 vi /etc/sudoers

7、ROOT 下方加入 :phroot ALL=(ALL) ALL

8、撤销sudoers编辑权限: chmod -v u+w /etc/sudoers

TAG标签:账户 root centos7 #