pam_timestamp.8 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. '\" t
  2. .\" Title: pam_timestamp
  3. .\" Author: [see the "AUTHOR" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: 09/03/2021
  6. .\" Manual: Linux-PAM Manual
  7. .\" Source: Linux-PAM Manual
  8. .\" Language: English
  9. .\"
  10. .TH "PAM_TIMESTAMP" "8" "09/03/2021" "Linux-PAM Manual" "Linux\-PAM Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. pam_timestamp \- Authenticate using cached successful authentication attempts
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBpam_timestamp\&.so\fR\ 'u
  34. \fBpam_timestamp\&.so\fR [timestampdir=\fIdirectory\fR] [timestamp_timeout=\fInumber\fR] [verbose] [debug]
  35. .SH "DESCRIPTION"
  36. .PP
  37. In a nutshell,
  38. \fIpam_timestamp\fR
  39. caches successful authentication attempts, and allows you to use a recent successful attempt as the basis for authentication\&. This is similar mechanism which is used in
  40. \fBsudo\fR\&.
  41. .PP
  42. When an application opens a session using
  43. \fIpam_timestamp\fR, a timestamp file is created in the
  44. \fItimestampdir\fR
  45. directory for the user\&. When an application attempts to authenticate the user, a
  46. \fIpam_timestamp\fR
  47. will treat a sufficiently recent timestamp file as grounds for succeeding\&.
  48. .PP
  49. The default encryption hash is taken from the
  50. \fBHMAC_CRYPTO_ALGO\fR
  51. variable from
  52. \fI/etc/login\&.defs\fR\&.
  53. .SH "OPTIONS"
  54. .PP
  55. \fBtimestampdir=\fR\fB\fIdirectory\fR\fR
  56. .RS 4
  57. Specify an alternate directory where
  58. \fIpam_timestamp\fR
  59. creates timestamp files\&.
  60. .RE
  61. .PP
  62. \fBtimestamp_timeout=\fR\fB\fInumber\fR\fR
  63. .RS 4
  64. How long should
  65. \fIpam_timestamp\fR
  66. treat timestamp as valid after their last modification date (in seconds)\&. Default is 300 seconds\&.
  67. .RE
  68. .PP
  69. \fBverbose\fR
  70. .RS 4
  71. Attempt to inform the user when access is granted\&.
  72. .RE
  73. .PP
  74. \fBdebug\fR
  75. .RS 4
  76. Turns on debugging messages sent to
  77. \fBsyslog\fR(3)\&.
  78. .RE
  79. .SH "MODULE TYPES PROVIDED"
  80. .PP
  81. The
  82. \fBauth\fR
  83. and
  84. \fBsession\fR
  85. module types are provided\&.
  86. .SH "RETURN VALUES"
  87. .PP
  88. PAM_AUTH_ERR
  89. .RS 4
  90. The module was not able to retrieve the user name or no valid timestamp file was found\&.
  91. .RE
  92. .PP
  93. PAM_SUCCESS
  94. .RS 4
  95. Everything was successful\&.
  96. .RE
  97. .PP
  98. PAM_SESSION_ERR
  99. .RS 4
  100. Timestamp file could not be created or updated\&.
  101. .RE
  102. .SH "NOTES"
  103. .PP
  104. 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\&.
  105. .SH "EXAMPLES"
  106. .sp
  107. .if n \{\
  108. .RS 4
  109. .\}
  110. .nf
  111. auth sufficient pam_timestamp\&.so verbose
  112. auth required pam_unix\&.so
  113. session required pam_unix\&.so
  114. session optional pam_timestamp\&.so
  115. .fi
  116. .if n \{\
  117. .RE
  118. .\}
  119. .SH "FILES"
  120. .PP
  121. /var/run/pam_timestamp/\&.\&.\&.
  122. .RS 4
  123. timestamp files and directories
  124. .RE
  125. .SH "SEE ALSO"
  126. .PP
  127. \fBpam_timestamp_check\fR(8),
  128. \fBpam.conf\fR(5),
  129. \fBpam.d\fR(5),
  130. \fBpam\fR(8)
  131. .SH "AUTHOR"
  132. .PP
  133. pam_timestamp was written by Nalin Dahyabhai\&.