chiark / gitweb /
Add pam configuration to allow user sessions to work out of the box
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Sep 2013 18:31:14 +0000 (14:31 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Sep 2013 19:35:06 +0000 (15:35 -0400)
commit5c390a4ae0d383b2003074ed011d47876c7e630c
tree26e32d558024e07feab46f28dcf759f0c15baccc
parent7b617155b50fdaad5d06359eb03e98f0c7b3087b
Add pam configuration to allow user sessions to work out of the box

systemd-logind will start user@.service. user@.service unit uses
PAM with service name 'systemd-user' to perform account and session
managment tasks. Previously, the name was 'systemd-shared', it is
now changed to 'systemd-user'.

Most PAM installations use one common setup for different callers.
Based on a quick poll, distributions fall into two camps: those that
have system-auth (Redhat, Fedora, CentOS, Arch, Gentoo, Mageia,
Mandriva), and those that have common-auth (Debian, Ubuntu, OpenSUSE).
Distributions that have system-auth have just one configuration file
that contains auth, password, account, and session blocks, and
distributions that have common-auth also have common-session,
common-password, and common-account. It is thus impossible to use one
configuration file which would work for everybody. systemd-user now
refers to system-auth, because it seems that the approach with one
file is more popular and also easier, so let's follow that.
Makefile.am
configure.ac
src/login/pam-module.c
src/login/systemd-user [new file with mode: 0644]
units/user@.service.in