This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Friday, September 8, 2017

How to setup passwordless `sudo` on Linux Easily

To allow  all users to set-up password-less sudo
Edit the visudo file by simply typing

ALL     ALL = (ALL) NOPASSWD: ALL

to allow all users to run all commands without a password.
Add the following line for a user called username alone  to setup password-less sudo

username ALL=(ALL) NOPASSWD: ALL

Add the following line for a group called wheel to set-up password-less sudo

# %wheel        ALL=(ALL)       NOPASSWD: ALL

No comments:

Post a Comment