Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Obscurity: Does Changing Your SSH Port Lower Your Risk?. Parent comment
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
sudo -u root whoami
The only downside is that "root" is no longer the default user to become, you have to explicitly specify it.
There are no comments on this comment yet.
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:
Now, as "user", you can 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.