Timeline for Lion Terminal remembers sudo password after quitting
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2011 at 20:46 | comment | added | user479 | If you open Terminal within the five minute window and then wait six minutes after it is open, can you repeat the behaviour? | |
Aug 20, 2011 at 19:13 | comment | added | Ingmar Hupp |
Cannot reproduce this here (Lion 10.7.1), seems to work as intended: I run sudo ls , quit Terminal, wait 6 minutes and sudo asks for a password again, as expected. As I said, the most likely cause is another process refreshing the timeout by running sudo as the same user. To find out which process, run sudo fs_usage -wf filesys|grep /var/db/sudo (while not actively using sudo anywhere else).
|
|
Aug 20, 2011 at 18:25 | comment | added | user479 |
That's the behaviour I'm seeing: it seems to pause and only starts going once someone issues another sudo , whether me or another user. So is it a bug on mine or everyone's computer?
|
|
Aug 20, 2011 at 18:21 | comment | added | Ingmar Hupp | Ah, I missed that part. The timeout is actually measured when sudo runs, based on the difference between the current time and the timestamp on the time stamp directory (/var/db/sudo/username). So unless your clock stops ticking, the timeout should never pause. It does however also get refreshed when another sudo is executed from the same user, so check for that (by monitoring the timestamp directory to see if the timestamp gets refreshed when you don't use sudo yourself). Good luck in hunting that down :) | |
Aug 20, 2011 at 18:12 | comment | added | user479 |
I'm not asking about the default timeout. I'm asking whether it's normal that the timeout seems to stop until another sudo is performed after opening Terminal.
|
|
Aug 20, 2011 at 18:07 | history | answered | Ingmar Hupp | CC BY-SA 3.0 |