Passwordless Sudo in Linux

From Knowledge Center
Jump to: navigation, search

This will show how to create a user and allow the user to do passwordless sudo:

$ useradd -m -s /bin/bash ruan

Ensure includedir /etc/sudoers.d is enabled in /etc/sudoers

Then you can create:

ruan    ALL=(ALL) NOPASSWD:ALL