Menu

A cached sudo timestamp is a policy decision with a lifetime
📰

A cached sudo timestamp is a policy decision with a lifetime

DEV Community: cybersecurity·andreagomez·22 days ago
#Afc7mdVb
Long article (472 words) — no AI summary yet.
Reading 0:00
15s threshold

A cached sudo timestamp is a policy decision with a lifetime

Sudo authentication is often treated as a one-time event followed by a short period of convenience. The timestamp cache is more accurately a policy object. It decides whether a later invocation can inherit proof of an earlier authentication, which terminal or process it belongs to, and how long that proof survives.

The sudoers manual documents timestamp_type , timestamp_timeout , and the way time stamps are associated with the user, terminal, and process session. The default behavior and available types can vary by build and configuration. A review should inspect the effective configuration on the host rather than relying on a generic Linux default.

A global timestamp can be reused across sessions in ways that a tty or ppid policy would prevent. A long timeout increases the window after a user walks away.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.