Check for valid cached credentials

Marc Haber <[email protected]> Mon, 29 Jul 2024 18:33:03 +0200
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
Hi,

I would like to have my shell prompt show whether the current session
still has valid cached credentials. According to the manual page (in the
documentation for the --no-update option), sudo -Nnv can be used to
check that. However, when there are no credentials cached, this sends
out a mail message every time the command is invoked when there are no
cached credentials.

Can this be avoided? I'd really like to have an option to silently check
for cached credentials, with no mail going out, and preferably no output
that needs piping to /dev/null in the shell prompt command.

Thanks for helping.

Greetings
Marc


-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users