Raspberry Pi, Ubuntu 20.04 server. Make sudo require a password

I have installed Ubuntu 20.04 server image on a Raspberry Pi 4. As per standard install there is no password requirement for sudo, this is something I most definitely want to change. I have tried already running:

sudo visudo /etc/sudoers.d/010_pi-nopasswd

and entering into it:

ubuntu ALL=(ALL) PASSWD: ALL

All to no avail.

Please can anyone help?

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like