PAM_TIMESTAMP_CHECK(8)

๐Ÿ’– PAM_TIMESTAMP_CHECK ๐Ÿ’–

okay bestie, welcome to the Linux-PAM Manual page for pam_timestamp_check(8) โ€” yes that's a section 8, we're in the admin/system zone, very grown-up of us โœจ

๐ŸŒธ NAME ๐ŸŒธ

pam_timestamp_check โ€” check to see if the default timestamp is valid ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

pam_timestamp_check [-k] [-d] [target_user]

โœจ DESCRIPTION โœจ

okay so with no arguments at all, pam_timestamp_check will check to see if the default timestamp is valid, or optionally remove it. that's it. that's the whole vibe. ๐ŸŽ€


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -k โ€” instead of checking the validity of a timestamp, remove it. this is analogous to sudo's -k option. (iconic sibling behaviour, fr fr ๐Ÿซถ)
  • -d โ€” instead of returning validity using an exit status, this one just... loops. indefinitely. polling regularly and printing the status on standard output. main character energy, it literally never leaves. ๐Ÿ’€
  • target_user โ€” okay so by default pam_timestamp_check checks or removes timestamps generated by pam_timestamp when users authenticate as themselves. but when the user authenticates as a different user, the name of the timestamp file changes to accommodate this. so target_user lets you specify this user name. ๐Ÿฆ‹

๐Ÿ’œ RETURN VALUES ๐Ÿ’œ

  • 0 โ€” the timestamp is valid. slay. โœ…
  • 2 โ€” the binary is not setuid root. ๐Ÿ˜ญ
  • 3 โ€” invalid invocation.
  • 4 โ€” user is unknown. who is she? ๐Ÿ™ˆ
  • 5 โ€” permissions error.
  • 6 โ€” invalid controlling tty.
  • 7 โ€” timestamp is not valid.

๐ŸŽ€ NOTES ๐ŸŽ€

users can get confused when they are not always asked for passwords when running a given program. some users reflexively begin typing information before noticing that it is not being asked for. not me personally but like, i get it bestie ๐Ÿ˜ญ


๐ŸŒˆ EXAMPLES ๐ŸŒˆ

auth sufficient pam_timestamp.so verbose
auth required   pam_unix.so

session required pam_unix.so
session optional pam_timestamp.so

๐Ÿ“ FILES ๐Ÿ“

  • /var/run/sudo/... โ€” timestamp files and directories

โญ SEE ALSO โญ

pam_timestamp_check(8), pam.conf(5), pam.d(5), pam(8)


๐Ÿ’– AUTHOR ๐Ÿ’–

pam_timestamp was written by Nalin Dahyabhai. thank you for your service king ๐Ÿ‘‘


ngl this page is giving "tiny tool, huge consequences" and i'm obsessed ๐Ÿ’…

okay that's the whole thing bestie, ily, go check those timestamps โ€” this was the Linux-PAM manual, dated 09/27/2026, and yes the footer said PAM_TIMESTAMP_CHECK(8) again because manpages love a little repetition ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from