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用戶密碼