2 ms·
I'm not up to speed on security, but it appears to me that your sudo password should probably be different from your account password, so the scenario turns int
by jarek 16y ago
I'm not up to speed on security, but it appears to me that your sudo password should probably be different from your account password, so the scenario turns into figuring out the username and two passwords.
- pyre 16y agoIs that even possible? I've never heard of anyone having a separate sudo password.
- jarek 16y agoHm... would the user not being in sudoers and using su with root password being different than the user password make more sense?
- daxelrod 16y agoYes. Here's how to set a separate sudo password: Assume your primary user account is called "user". Set up a second account, whose password you want to be your sudo password. Let's call this account "admin". In /etc/sudoers: Defaults:user runas_default=admin Defaults:user runaspw Now, as "user", you can sudo -u root whoami and you will be asked for "admin"'s password. The only downside is that "root" is no longer the default user to become, you have to explicitly specify it.