新建用户并创建家目录
| 1 2 | useradd -d /home/xhy -m xhy  | 
更改为bash命令
| 1 2 | usermod -s /bin/bash xhy | 
更改密码
| 1 2 | sudo passwd xhy | 
设置sudo权限
| 1 2 3 4 5 6 | sudo chmod u+w /etc/sudoers sudo vi /etc/sudoers #在root底下添加下面一行 xhy     ALL=(ALL:ALL) ALL sudo chmod u-w /etc/sudoers | 
