su 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # The PAM configuration file for the Shadow `su' service
  3. #
  4. # This allows root to su without passwords (normal operation)
  5. auth sufficient pam_rootok.so
  6. # Uncomment this to force users to be a member of group root
  7. # before they can use `su'. You can also add "group=foo"
  8. # to the end of this line if you want to use a group other
  9. # than the default "root" (but this may have side effect of
  10. # denying "root" user, unless she's a member of "foo" or explicitly
  11. # permitted earlier by e.g. "sufficient pam_rootok.so").
  12. # (Replaces the `SU_WHEEL_ONLY' option from login.defs)
  13. # auth required pam_wheel.so
  14. # Uncomment this if you want wheel members to be able to
  15. # su without a password.
  16. # auth sufficient pam_wheel.so trust
  17. # Uncomment this if you want members of a specific group to not
  18. # be allowed to use su at all.
  19. # auth required pam_wheel.so deny group=nosu
  20. # Uncomment and edit /etc/security/time.conf if you need to set
  21. # time restrainst on su usage.
  22. # (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
  23. # as well as /etc/porttime)
  24. # account requisite pam_time.so
  25. # This module parses environment configuration file(s)
  26. # and also allows you to use an extended config
  27. # file /etc/security/pam_env.conf.
  28. #
  29. # parsing /etc/environment needs "readenv=1"
  30. session required pam_env.so readenv=1
  31. # Defines the MAIL environment variable
  32. # However, userdel also needs MAIL_DIR and MAIL_FILE variables
  33. # in /etc/login.defs to make sure that removing a user
  34. # also removes the user's mail spool file.
  35. # See comments in /etc/login.defs
  36. #
  37. # "nopen" stands to avoid reporting new mail when su'ing to another user
  38. session optional pam_mail.so nopen
  39. # Sets up user limits, please uncomment and read /etc/security/limits.conf
  40. # to enable this functionality.
  41. # (Replaces the use of /etc/limits in old login)
  42. # session required pam_limits.so
  43. # The standard Unix authentication modules, used with
  44. # NIS (man nsswitch) as well as normal /etc/passwd and
  45. # /etc/shadow entries.
  46. auth include common-auth
  47. account include common-account
  48. session include common-session