Can someone explain what is `<user> ALL=(ALL) NOPASSWD:ALL` does in sudoers file?
I know that that line above allows <user>
to run sudo command without having to type in the password. But what does the syntax actually mean? If you can link to an article then that would be fine too. Thanks
Solution 1:
From man sudoers
By default, sudo requires that a user authenticate him or herself before running a command. This behavior can be modified via the NOPASSWD tag
So users or groups are able to run sudo without authenticating. This makes it a big security risk so be very careful with this command.
Also check https://askubuntu.com/questions/334318/sudoers-file-enable-nopasswd-for-user-all-commands