Jump to content

How can I require password entry for sudo?


Go to solution Solved by schwar3kat,

Recommended Posts

Posted (edited)

Not that I ever got this working correctly on Raspbian, but how do I go about requiring a password for sudo? I am able to change the password via 'sudo passwd' without error, but I still don't know how to make the system request the password every time I sudo.

 

Thanks so much

 

Joe

Edited by virgosystems
formatting
Posted

Sudo users by default supply their own password for authentication, rather than the password of the target user. After authentication, and if the configuration file (typically /etc/sudoers) permits the user access, the system invokes the requested command.  https://en.wikipedia.org/wiki/Sudo.


When you ran the command 'sudo passwd', you were changing the password for the root user, not the user invoking sudo (you were acting as root when you changed the password).

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines