diff options
Diffstat (limited to 'share/hooks/lxc/1010-login.hook.chroot')
-rwxr-xr-x | share/hooks/lxc/1010-login.hook.chroot | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/lxc/1010-login.hook.chroot b/share/hooks/lxc/1010-login.hook.chroot new file mode 100755 index 000000000..7180c5884 --- /dev/null +++ b/share/hooks/lxc/1010-login.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Disabling loginuid (requires read-write proc filesystem) +if grep -E -qs "^ *session *required *pam_loginuid.so" /etc/pam.d/login +then + sed -i -e 's|^.*\(session.*required.*pam_loginuid.so\)$|#\1|' /etc/pam.d/login +fi |