Menu

Why a sudo timestamp is a privilege boundary, not a convenience
📰

Why a sudo timestamp is a privilege boundary, not a convenience

DEV Community: authentication·johnettagaweraks·16 days ago
#WtpATVRy
Reading 0:00
15s threshold

Why a sudo timestamp is a privilege boundary, not a convenience

A user can run one approved sudo command, authenticate, and then run several more without typing a password again. That short interruption is useful on a workstation and dangerous on a shared or automated host if the surrounding policy was never examined. The password cache is part of the privilege boundary because it decides which later process gets an authenticated root action without a fresh human check.

The cache is governed by sudoers settings such as timestamp_timeout and timestamp_type . The exact behavior matters. A time-based record can be tied to a terminal, a parent process, or a global session, depending on configuration. Standard sudo policy also includes use_pty , command restrictions, environment controls, and logging.…

Continue reading — create a free account

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