Glam Prestige Journal

Bright entertainment trends with youth appeal.

sudo su asks for invoking user's password as default sudo behaviour.

With Defaults rootpw it will ask root's password.

  1. But is there a way, to make sudo su behave like su? Like it'll ask password of the user mentioned in the parameter?

Like:

sudo su/ sudo su - # ask root's password
sudo su foo/ sudo su - foo # ask foo's password
sudo su bar/ sudo su - bar # ask bar's password
  1. Defaults rootpw will ask root's password for all the rules mentioned in sudoers file. Is it possible to make it ask root's password for only sudo su/ sudo su - rule and not other rules? Correct me if I'm wrong here?
4 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