aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init-sh/lib.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 1be738a..25711e9 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -241,9 +241,9 @@ ForbidAutologin() {
}
ForbidUserList() {
- file=/usr/share/config/kdmrc
+ file=/usr/share/config/kdm/kdmrc
if [[ -f ${file} ]]; then
- perl -pi -e 's/^UserView=.*$/UserView=false/' ${file}
+ perl -pi -e 's/^ShowUsers=.*$/ShowUsers=None/' ${file}
fi
file=/etc/X11/gdm/gdm.conf
@@ -253,9 +253,9 @@ ForbidUserList() {
}
AllowUserList() {
- file=/usr/share/config/kdmrc
+ file=/usr/share/config/kdm/kdmrc
if [[ -f ${file} ]]; then
- perl -pi -e 's/^UserView=.*$/UserView=true/' ${file}
+ perl -pi -e 's/^ShowUsers=.*$/ShowUsers=All/' ${file}
fi
file=/etc/X11/gdm/gdm.conf