configuration file:/etc/sudoers
use visudo command or sudoedit comment to edit the configuration file with root privileges
add red content in the configuration file
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
wmmwang ALL=(ALL) NOPASSWD:ALL
it means add sudo privileges for user wmmwang, NOPASSWORD means this user doesn't need to input password when he uses sudo privileges
use visudo command or sudoedit comment to edit the configuration file with root privileges
add red content in the configuration file
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
wmmwang ALL=(ALL) NOPASSWD:ALL
it means add sudo privileges for user wmmwang, NOPASSWORD means this user doesn't need to input password when he uses sudo privileges
本文介绍如何使用visudo或sudoedit命令编辑/etc/sudoers文件来为用户wmmwang添加sudo权限,并设置其在使用sudo时无需输入密码。
1657

被折叠的 条评论
为什么被折叠?



