Operating System - HP-UX
1834712 Members
2140 Online
110069 Solutions
New Discussion

Sudo prompting for password only once.

 
SOLVED
Go to solution
Mike Schallmo
Advisor

Sudo prompting for password only once.

Hello all,

I've recently configured sudo and I'm running into a problem with password prompting when invoking sudo.

We'll start this off fresh with a 'sudo -K' to clear out any timestamps out there.

I then invoke 'sudo passwd test' and I'm prompted for my user password before I'm allowed to change the test user's password.

Now, I'm expecting the sudo timestamp to expire after 5 minutes (default), but this is not happening. If I try another command with sudo after 5, 10 or even 15 minutes I am not re-prompted for my password. the command just completes. If I log off the system for 30 minutes and go back in and run another command with sudo, I still don't receive my password prompt.

It's like it's ignoring the timestamp altogether.

Any idea what's going on? I've attached my sudoers file.
2 REPLIES 2
Jeff_Traigle
Honored Contributor
Solution

Re: Sudo prompting for password only once.

See the sudoers man page. You have timestamp_timeout set to a value less than 0 so it never expires.
--
Jeff Traigle
Mike Schallmo
Advisor

Re: Sudo prompting for password only once.

Ahhh, stupid mistake on my part! That's what you get for pulling a template from another system.

Thanks for the help!