[Linux]Add User Sudo Privileges

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


你可能感兴趣的:(linux,File,command,user,input)