README 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. pam_succeed_if — test account characteristics
  2. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  3. DESCRIPTION
  4. pam_succeed_if.so is designed to succeed or fail authentication based on
  5. characteristics of the account belonging to the user being authenticated or
  6. values of other PAM items. One use is to select whether to load other modules
  7. based on this test.
  8. The module should be given one or more conditions as module arguments, and
  9. authentication will succeed only if all of the conditions are met.
  10. OPTIONS
  11. The following flags are supported:
  12. debug
  13. Turns on debugging messages sent to syslog.
  14. use_uid
  15. Evaluate conditions using the account of the user whose UID the application
  16. is running under instead of the user being authenticated.
  17. quiet
  18. Don't log failure or success to the system log.
  19. quiet_fail
  20. Don't log failure to the system log.
  21. quiet_success
  22. Don't log success to the system log.
  23. audit
  24. Log unknown users to the system log.
  25. Conditions are three words: a field, a test, and a value to test for.
  26. Available fields are user, uid, gid, shell, home, ruser, rhost, tty and service
  27. :
  28. field < number
  29. Field has a value numerically less than number.
  30. field <= number
  31. Field has a value numerically less than or equal to number.
  32. field eq number
  33. Field has a value numerically equal to number.
  34. field >= number
  35. Field has a value numerically greater than or equal to number.
  36. field > number
  37. Field has a value numerically greater than number.
  38. field ne number
  39. Field has a value numerically different from number.
  40. field = string
  41. Field exactly matches the given string.
  42. field != string
  43. Field does not match the given string.
  44. field =~ glob
  45. Field matches the given glob.
  46. field !~ glob
  47. Field does not match the given glob.
  48. field in item:item:...
  49. Field is contained in the list of items separated by colons.
  50. field notin item:item:...
  51. Field is not contained in the list of items separated by colons.
  52. user ingroup group[:group:....]
  53. User is in given group(s).
  54. user notingroup group[:group:....]
  55. User is not in given group(s).
  56. user innetgr netgroup
  57. (user,host) is in given netgroup.
  58. user notinnetgr group
  59. (user,host) is not in given netgroup.
  60. EXAMPLES
  61. To emulate the behaviour of pam_wheel, except there is no fallback to group 0
  62. being only approximated by checking also the root group membership:
  63. auth required pam_succeed_if.so quiet user ingroup wheel:root
  64. Given that the type matches, only loads the othermodule rule if the UID is over
  65. 500. Adjust the number after default to skip several rules.
  66. type [default=1 success=ignore] pam_succeed_if.so quiet uid > 500
  67. type required othermodule.so arguments...
  68. AUTHOR
  69. Nalin Dahyabhai <nalin@redhat.com>