From fe3c45368c9f1b0b211a71b807682776b080e824 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 9 Aug 2005 22:41:39 +0000 Subject: fixed wrong kdmrc values (bug #16268). follow new Single user need in inittab. --- share/libmsec.py | 4 ++-- 1 file 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 -- cgit v1.2.1