[sudo-users] Cache password at login?

Eric S. Johansson esj at harvee.org
Tue Dec 8 18:29:17 EST 2009

Pepijn Schmitz wrote:
> Hi everyone,
> I have a question that I haven't been able to find the answer to on the
> Internet or in the sudo manual: is it possible to cache the password when I
> log in?
> I frequently log on to my Ubuntu server to perform some administrative
> tasks. Every time I have to give my password to log in, and then immediately
> give my password again to sudo. It would be nice if the login program, which
> runs as root, could set my sudo timestamp somehow so that if I execute sudo
> immediately after logging in it doesn't have to ask me for my password. Is
> there a way to do this with login / sudo / some other tool?

setup the root account to authenticate via ssh keys.  login as root and bingo.

otoh, I'v always wondered why one can't use ssh keys for authentication for 
sudo.  one login method for all access.

More information about the sudo-users mailing list