ubuntu增加用户并且添加到root组
程序员文章站
2022-07-14 21:27:11
...
useradd username -m
设置密码
passwd username
Enter new UNIX password: 123456
Retype new UNIX password: 123456
改变组
usermod -g root username
确定是否在root组
id username
uid=1001(username) gid=0(root) groups=0(root)``
上一篇: 添加到sudo组
下一篇: 将用户添加到sudoer列表