sudo su
useradd frontng
passwd frontng
提示输入密码vim
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
vim /etc/sudoers
修改文件以下:bash
# User privilege specification root ALL=(ALL) ALL frontng ALL=(ALL) AL
usermod -d /home/frontng frontng
usermod -s /bin/bash frontng
ssh frontng@xxx.xxx.xxx.xxx #输入frontng用户密码 sudo su #输入frontng用户密码