Skip to content

Commit

Permalink
login: include pam_systemd_home.so in the default PAM snippet we ship…
Browse files Browse the repository at this point in the history
… for user@.service

Let's make sure systemd-homed works out-of-the box as well as possible.
  • Loading branch information
poettering committed May 6, 2020
1 parent e48471b commit bd685fa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/login/systemd-user.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
#
# Used by systemd --user instances.

account required pam_unix.so
m4_ifdef(`ENABLE_HOMED',
-account sufficient pam_systemd_home.so
)m4_dnl
account sufficient pam_unix.so
account required pam_permit.so

m4_ifdef(`HAVE_SELINUX',
session required pam_selinux.so close
session required pam_selinux.so nottys open
)m4_dnl
session required pam_loginuid.so
session optional pam_keyinit.so force revoke
m4_ifdef(`ENABLE_HOMED',
-session optional pam_systemd_home.so
)m4_dnl
session optional pam_systemd.so

0 comments on commit bd685fa

Please sign in to comment.