- 添加用户bn
adduser bn
- 设置bn密码
passwd bn
后续显示如下:
Changing password for user bn.
New UNIX password: //在这里输入新密码
Retype new UNIX password: //再次输入新密码
passwd: all authentication tokens updated successfully.
- 给bn用户root权限
vim /etc/sudoers
找到下面一行,在root下面添加一行,如下所示:
root ALL=(ALL) ALL
bn ALL=(ALL) ALL