增加用户并自动建立用户的登入目录
useradd -d /usr/test -m test
进入用户目录
cd /usr/work/
修改用户密码
passwd test
设置用户权限
sudo vim /etc/sudoers
搜索root
在root ALL=(ALL) ALL增加一行
test ALL=(ALL) ALL
useradd -d /usr/test -m test
cd /usr/work/
passwd test
sudo vim /etc/sudoers
在root ALL=(ALL) ALL增加一行
test ALL=(ALL) ALL