pam_shells.8 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. '\" t
  2. .\" Title: pam_shells
  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_SHELLS" "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_shells \- PAM module to check for valid login shell
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBpam_shells\&.so\fR\ 'u
  34. \fBpam_shells\&.so\fR
  35. .SH "DESCRIPTION"
  36. .PP
  37. pam_shells is a PAM module that only allows access to the system if the user\*(Aqs shell is listed in
  38. /etc/shells\&.
  39. .PP
  40. It also checks if
  41. /etc/shells
  42. is a plain file and not world writable\&.
  43. .SH "OPTIONS"
  44. .PP
  45. This module does not recognise any options\&.
  46. .SH "MODULE TYPES PROVIDED"
  47. .PP
  48. The
  49. \fBauth\fR
  50. and
  51. \fBaccount\fR
  52. module types are provided\&.
  53. .SH "RETURN VALUES"
  54. .PP
  55. PAM_AUTH_ERR
  56. .RS 4
  57. Access to the system was denied\&.
  58. .RE
  59. .PP
  60. PAM_SUCCESS
  61. .RS 4
  62. The user\*(Aqs login shell was listed as valid shell in
  63. /etc/shells\&.
  64. .RE
  65. .PP
  66. PAM_SERVICE_ERR
  67. .RS 4
  68. The module was not able to get the name of the user\&.
  69. .RE
  70. .SH "EXAMPLES"
  71. .PP
  72. .if n \{\
  73. .RS 4
  74. .\}
  75. .nf
  76. auth required pam_shells\&.so
  77. .fi
  78. .if n \{\
  79. .RE
  80. .\}
  81. .sp
  82. .SH "SEE ALSO"
  83. .PP
  84. \fBshells\fR(5),
  85. \fBpam.conf\fR(5),
  86. \fBpam.d\fR(5),
  87. \fBpam\fR(8)
  88. .SH "AUTHOR"
  89. .PP
  90. pam_shells was written by Erik Troan <ewt@redhat\&.com>\&.