root password prompts

Mike McCarty Mike.McCarty at sbcglobal.net
Wed May 26 19:48:17 UTC 2010


Patrick O'Callaghan wrote:
> On Wed, 2010-05-26 at 14:39 -0400, Tom Horsley wrote:

[...]

>> Where is this mythical setting to make it
>> remember the password?
> 
> 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.

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.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!


More information about the users mailing list