Re: Comparing -k and -K
Grant Taylor via sudo-users <[email protected]> Tue, 27 Dec 2022 16:53:28 -0700
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Organization | TNet Consulting |
| Message-ID | <[email protected]> |
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 ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users