Skip to main content

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