aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-08-09 22:41:39 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-08-09 22:41:39 +0000
commitfe3c45368c9f1b0b211a71b807682776b080e824 (patch)
tree62794ec084ec228edfcd821c0aeb72edb62854ea
parent7e63b05d51c7e51208fa61578e9b2000558443d9 (diff)
downloadmsec-fe3c45368c9f1b0b211a71b807682776b080e824.tar
msec-fe3c45368c9f1b0b211a71b807682776b080e824.tar.gz
msec-fe3c45368c9f1b0b211a71b807682776b080e824.tar.bz2
msec-fe3c45368c9f1b0b211a71b807682776b080e824.tar.xz
msec-fe3c45368c9f1b0b211a71b807682776b080e824.zip
fixed wrong kdmrc values (bug #16268).
follow new Single user need in inittab.
-rw-r--r--share/libmsec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index da07664..0d7cefa 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -437,7 +437,7 @@ def allow_reboot(arg):
allow_reboot.arg_trans = YES_NO_TRANS
################################################################################
-SHOW_USERS_VALUES = ('All', 'Selected', 'None')
+SHOW_USERS_VALUES = ('NotHidden', 'Selected', 'None')
def allow_user_list(arg):
''' Allow/Forbid the list of users on the system on display managers (kdm and gdm).'''
@@ -1135,7 +1135,7 @@ def enable_sulogin(arg):
else:
if val:
_interactive and log(_('Disabling sulogin in single user runlevel'))
- inittab.remove_line_matching('~~:S:wait:/sbin/sulogin')
+ inittab.replace_line_matching('[^#]+:S:', '~~:S:wait:/bin/sh', 1)
enable_sulogin.arg_trans = YES_NO_TRANS