RubberDuckyDJ

Pam Config for SDDM

Oct 3rd, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. #%PAM-1.0
  2.  
  3. # Block login if they are globally disabled
  4. auth requisite pam_nologin.so
  5. auth required pam_succeed_if.so user != root quiet_success
  6.  
  7. # auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
  8. @include common-auth
  9. # gnome_keyring breaks QProcess
  10. -auth optional pam_gnome_keyring.so
  11. -auth optional pam_kwallet5.so
  12.  
  13. @include common-account
  14.  
  15. # SELinux needs to be the first session rule. This ensures that any
  16. # lingering context has been cleared. Without this it is possible that a
  17. # module could execute code in the wrong domain.
  18. session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
  19. # Create a new session keyring.
  20. session optional pam_keyinit.so force revoke
  21. session required pam_limits.so
  22. session required pam_loginuid.so
  23. @include common-session
  24. # SELinux needs to intervene at login time to ensure that the process starts
  25. # in the proper default security context. Only sessions which are intended
  26. # to run in the user's context should be run after this.
  27. session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
  28. -session optional pam_gnome_keyring.so auto_start
  29. -session optional pam_kwallet5.so auto_start
  30.  
  31. @include common-password
  32.  
  33. # From the pam_env man page
  34. # Since setting of PAM environment variables can have side effects to other modules, this module should be the last one on the stack.
  35.  
  36. # Load environment from /etc/environment
  37. session required pam_env.so
  38.  
  39. # Load environment from /etc/default/locale and ~/.pam_environment
  40. session required pam_env.so envfile=/etc/default/locale user_readenv=1
  41.  
Add Comment
Please, Sign In to add comment