一、查看当前登陆用户
whoami
二、查看所有用户
cut -d : -f 1 /etc/passwd
三、新建用户
adduser xxx
passwd xxx
四、赋予用户root权限
vi /etc/sudoers
## Allow root to run any commands anywher
root ALL=(ALL) ALL
xxx ALL=(ALL) ALL
一、查看当前登陆用户
whoami
二、查看所有用户
cut -d : -f 1 /etc/passwd
三、新建用户
adduser xxx
passwd xxx
四、赋予用户root权限
vi /etc/sudoers
## Allow root to run any commands anywher
root ALL=(ALL) ALL
xxx ALL=(ALL) ALL