You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. #%PAM-1.0
  2. auth sufficient pam_rootok.so
  3. # If you want to restrict users begin allowed to su even more,
  4. # create /etc/security/suauth.allow (or to that matter) that is only
  5. # writable by root, and add users that are allowed to su to that
  6. # file, one per line.
  7. #auth required pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.allow
  8. # Uncomment this to allow users in the wheel group to su without
  9. # entering a passwd.
  10. #auth sufficient pam_wheel.so use_uid trust
  11. # Alternatively to above, you can implement a list of users that do
  12. # not need to supply a passwd with a list.
  13. #auth sufficient pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.nopass
  14. # Comment this to allow any user, even those not in the 'wheel'
  15. # group to su
  16. auth required pam_wheel.so use_uid
  17. auth include system-auth
  18. account include system-auth
  19. password include system-auth
  20. session include system-auth
  21. session required pam_env.so
  22. session optional pam_xauth.so