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