This commit is contained in:
committed by
Git OBS Bridge
parent
bc27e5352f
commit
e421cb88c9
@@ -314,5 +314,24 @@ BEGIN {
|
||||
next;
|
||||
}
|
||||
'
|
||||
# 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
|
||||
mv $r/etc/pam.d/gdm.new $r/etc/pam.d/gdm
|
||||
fi
|
||||
|
||||
mv $r/etc/gdm/custom.conf.new $r/etc/gdm/custom.conf
|
||||
mv $r/etc/gdm/gdm_sysconfig.conf.new $r/etc/gdm/gdm_sysconfig.conf
|
||||
|
Reference in New Issue
Block a user