- 增加用户adduser test
passwd test - 授权
chmod-v u+w /etc/sudoersvi /etc/sudoers## Allow root to run any commands anywherroot ALL=(ALL) ALLadmin ALL=(ALL) ALL -
chmod-v u-w /etc/sudoers -
su test
来源:oschina
链接:https://my.oschina.net/u/4158242/blog/3210273
