1

This question already has an answer here:

Can I perform 'sudo' actions with different password other than my login password?

Is there any way to achieve this?

marked as duplicate by Pilot6, Ron, Seth Dec 17 '15 at 17:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

No, you can not.

sudo basically enables one to impersonate other user (by default root) by providing the credential for the user who is running the sudo command (given the user running sudo is in the sudoers file with sufficient privilege).

At most, you can run specific commands with NOPASSWD parameter so that those commands while running with sudo won't require your password but in all other cases you can not use any other password rather than your account's one.

Not the answer you're looking for? Browse other questions tagged or ask your own question.