Jump to content

How can I require password entry for sudo?


virgosystems
Go to solution Solved by schwar3kat,

Recommended Posts

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
Link to comment
Share on other sites

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).

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines