Skip to content

Commit

Permalink
sys-apps/util-linux: fix 'su -l' (install pam configuration)
Browse files Browse the repository at this point in the history
Reported-by: josef64
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
thesamesam committed Dec 20, 2021
1 parent 879fd4f commit e1a92e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys-apps/util-linux/files/su-l.pamd
@@ -0,0 +1,5 @@
auth include su
account include su
password include su
session optional pam_lastlog.so
session include su
Expand Up @@ -312,8 +312,11 @@ multilib_src_install_all() {
fi

if use pam ; then
# See https://github.com/util-linux/util-linux/blob/master/Documentation/PAM-configuration.txt
newpamd "${FILESDIR}/runuser.pamd" runuser
newpamd "${FILESDIR}/runuser-l.pamd" runuser-l

newpamd "${FILESDIR}/su-l.pamd" su-l
fi

# Note:
Expand Down
3 changes: 3 additions & 0 deletions sys-apps/util-linux/util-linux-9999.ebuild
Expand Up @@ -307,8 +307,11 @@ multilib_src_install_all() {
fi

if use pam ; then
# See https://github.com/util-linux/util-linux/blob/master/Documentation/PAM-configuration.txt
newpamd "${FILESDIR}/runuser.pamd" runuser
newpamd "${FILESDIR}/runuser-l.pamd" runuser-l

newpamd "${FILESDIR}/su-l.pamd" su-l
fi

# Note:
Expand Down

0 comments on commit e1a92e8

Please sign in to comment.