[sudo-users] Comparing -k and -K

Grant Taylor gtaylor at tnetconsulting.net
Tue Dec 27 16:53:28 MST 2022


On 12/27/22 3:35 PM, Todd C. Miller via sudo-users wrote:
> The cached credential file generally holds multiple credentials. 
> For example, there is a seperate entry for each terminal the user 
> logged in to.  Running "sudo -k" will invalidate the credentials 
> for the current terminal session but will not affect other sessions. 
> Running "sudo -K" will remove the entire credential file so it affects 
> all sessions.

Thank you for that explanation Todd.  That makes it very apparent to me 
that `-k` (lower case k) is probably preferred to avoid interfering with 
other terminals.

I think it would be very nice for a version of your statement to be 
added to the sudo manual page.



-- 
Grant. . . .
unix || die



More information about the sudo-users mailing list