This commit is contained in:
committed by
Git OBS Bridge
parent
f2ff714bfd
commit
5010bfe5cd
@@ -316,17 +316,10 @@ BEGIN {
|
||||
'
|
||||
# Password-less login is implemented by PAM. Do the required change.
|
||||
if [ "$DISPLAYMANAGER_PASSWORD_LESS_LOGIN" = "yes" ] ; then
|
||||
sed 's/^\(auth[[:space:]][[:space:]]*\)include[[:space:]]\([[:space:]]*\)common-auth/\1required\2pam_permit.so/' <$r/etc/pam.d/gdm-autologin >$r/etc/pam.d/gdm-autologin.new
|
||||
sed 's/^\(auth[[:space:]][[:space:]]*\)include[[:space:]]\([[:space:]]*\)common-auth/\1required\2pam_permit.so/' <$r/etc/pam.d/gdm >$r/etc/pam.d/gdm.new
|
||||
else
|
||||
sed 's/^\(auth[[:space:]][[:space:]]*\)required\([[:space:]][[:space:]]*\)pam_permit\.so/\1include \2common-auth/' <$r/etc/pam.d/gdm-autologin >$r/etc/pam.d/gdm-autologin.new
|
||||
sed 's/^\(auth[[:space:]][[:space:]]*\)required\([[:space:]][[:space:]]*\)pam_permit\.so/\1include \2common-auth/' <$r/etc/pam.d/gdm >$r/etc/pam.d/gdm.new
|
||||
fi
|
||||
if cmp -s $r/etc/pam.d/gdm-autologin $r/etc/pam.d/gdm-autologin.new ; then
|
||||
rm $r/etc/pam.d/gdm-autologin.new
|
||||
else
|
||||
mv $r/etc/pam.d/gdm-autologin.new $r/etc/pam.d/gdm-autologin
|
||||
fi
|
||||
if cmp -s $r/etc/pam.d/gdm $r/etc/pam.d/gdm.new ; then
|
||||
rm $r/etc/pam.d/gdm.new
|
||||
else
|
||||
|
Reference in New Issue
Block a user