Nopasswd the user

On ubuntu 22.04

to add your current user to passwordless sudo

echo "useradmin ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/useradmin

Revision #1
Created 19 July 2023 07:26:29 by Mesut Bayrak
Updated 21 October 2023 11:40:14 by Mesut Bayrak