root password prompts

Patrick O'Callaghan pocallaghan at gmail.com
Wed May 26 20:18:35 UTC 2010


On Wed, 2010-05-26 at 14:48 -0500, Mike McCarty wrote:
> > AFAIK this is a function of 'sudo'. It asks you the first time and
> > remembers for a few minutes after. I've never seen this behaviour
> other
> > than with sudo.
> 
> Umm, perhaps you mean su. The sudo command does not prompt
> for the root password.

No, I mean sudo. In the default config it prompts for the user's
password.

> It doesn't "remember the password". It makes an entry in a log
> with the epoch. When next invoked, sudo checks the latest entry,
> and if less than a certain amount of time has elapsed, simply
> goes on. If more than the time limit has elapsed, then it prompts,
> and makes a new entry.

IOW it remembers it by logging it. How else would it do it except by
recording it in a file?

poc



More information about the users mailing list