From 0b78e0c6247effcc3d83e3272f4466e23592716c0b551a172678bf7091b0084c Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 4 Jun 2013 08:42:28 +0000 Subject: [PATCH] Accepting request 177371 from home:WernerFink:branches:Base:System - Make pam configuration for command su using the systemd login manager for ordinary users as this allows to use all services provided by systemd login manager OBS-URL: https://build.opensuse.org/request/show/177371 OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=188 --- coreutils.changes | 7 +++++++ su.pamd | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/coreutils.changes b/coreutils.changes index 2fa1631..08789b4 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 4 08:31:39 UTC 2013 - werner@suse.de + +- Make pam configuration for command su using the systemd login + manager for ordinary users as this allows to use all services + provided by systemd login manager + ------------------------------------------------------------------- Mon May 20 15:38:30 UTC 2013 - mail@bernhard-voelker.de diff --git a/su.pamd b/su.pamd index 88ddbaf..6ca92e4 100644 --- a/su.pamd +++ b/su.pamd @@ -1,8 +1,11 @@ #%PAM-1.0 auth sufficient pam_rootok.so auth include common-auth -account sufficient pam_rootok.so +account sufficient pam_rootok.so account include common-account password include common-password session include common-session session optional pam_xauth.so +session [default=1 success=ignore] pam_succeed_if.so quiet uid > 999 +session required pam_loginuid.so +session required pam_systemd.so kill-exclude-users=0