My computer has user1 and user2, both administrators.
While I'm logged in as user1 I'm trying to:
- "su - user2" -> prompts me for the users2 password, then I can type commands
- "sudo --user=user2 [command]" -> prompts me for the password. If I type user2's password I get a "Sorry, try again." error message as if the password is incorrect. If I type user1's password it runs correctly.
Shouldn't the sudo command require the user's password that I define in the "--user" parameter?