Thomas' Tech Tips

sudo without password

21 January 2024 - Thomas Damgaard

Sometimes you want to disable the password prompt in sudo.

In order to do this for the sudo group, run sudo visudo and change the line:

%sudo   ALL=(ALL:ALL) ALL

into

%sudo   ALL=(ALL:ALL) NOPASSWD: ALL

Save and close.

Next time you run sudo, it will not prompt for password.

Filed under: debian, howto, linux, sudo, tips

Back to article list