Bug 4097 - msec writes invalid keys in /usr/share/config/kdm/kdmrc
Summary: msec writes invalid keys in /usr/share/config/kdm/kdmrc
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: D Morgan
QA Contact:
URL:
Whiteboard:
Keywords:
: 4098 4200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-11 16:11 CET by Frederik Himpe
Modified: 2012-05-12 18:54 CEST (History)
1 user (show)

See Also:
Source RPM: msec-0.80.10-8.mga2
CVE:
Status comment:


Attachments
alpha3 kdmrc (21.18 KB, text/plain)
2012-01-20 14:14 CET, Bit Twister
Details

Description Frederik Himpe 2012-01-11 16:11:33 CET
When kdm is started when booting the system, these errors are logged:

Jan 11 15:56:00 localhost kdm_config[2058]: Invalid boolean value '' at /usr/share/config/kdm/kdmrc:495
Jan 11 15:56:00 localhost kdm_config[2058]: Invalid option value '' at /usr/share/config/kdm/kdmrc:497
Jan 11 15:56:00 localhost kdm_config[2058]: Invalid option value '' at /usr/share/config/kdm/kdmrc:509
Jan 11 15:56:00 localhost kdm_config[2058]: Invalid boolean value '' at /usr/share/config/kdm/kdmrc:511
Comment 1 John Balcaen 2012-01-11 19:56:36 CET
Where did you take thoses log ? (i don't have it locally).
Could you also attach the kdmrc ?

CC: (none) => balcaen.john

Comment 2 Frederik Himpe 2012-01-12 09:15:20 CET
These message come from /var/log/syslog

According to rpm -V my /usr/share/config/kdm/kdmrc is identical to the one distributed in the kdm package.

Notice the unset configuration settings which it errors on:

# See above
AllowNullPasswd=
# See above
AllowShutdown=
# Enable password-less logins on this display. USE WITH EXTREME CARE!
# Default is false
NoPassEnable=false
# The users that do not need to provide a password to log in. NEVER list root!
# "*" means all non-root users. @<group> means all users in that group.
# Default is ""
NoPassUsers=
AllowShutdown=All

# Greeter config for local displays
[X-:*-Greeter]
# See above
PreselectUser=
# See above
FocusPasswd=
Comment 3 John Balcaen 2012-01-12 12:10:18 CET
In fact /usr/share/config/kdm/kdmrc is not part of any rpm package, but it's an alternative file which you can configure via update-alternatives --config kde4-config 
It's using either the kdmrc provided by Default-kde4-config, vanilla-kde4-config or netbook-kde4-config
So i'm not sure that rpm -V is enough to ensure that the file is « correct ».
You're using the Default-kde4-config ?
Because i did not notice this errors locally ?
Comment 4 Frederik Himpe 2012-01-12 13:30:51 CET
You are right, following the symlinks this file is provided by Default-kde4-config-2-0.20120110.1.mga2 and it is modified. There is also ccpbackup file.

This is a fresh installation of a few weeks ago. I did not modify this file by hand, nor did I change settings of KDM with some graphical configuration tool. So it looks like something modified this file without my knowledge. I suspected msec, and indeed: in /usr/share/msec/plugins/msec.py there is code wich touches kdmrc. It looks like msec is the culprit of the syntax errors in the kdmrc file.

Summary: Errors in /usr/share/config/kdm/kdmrc => msec writes invalid keys in /usr/share/config/kdm/kdmrc
Source RPM: kdebase4-workspace-4.7.97-1.mga2 => msec-0.80.10-8.mga2

Comment 5 John Balcaen 2012-01-12 15:17:47 CET
*** Bug 4098 has been marked as a duplicate of this bug. ***
Comment 6 John Balcaen 2012-01-12 15:20:08 CET
Reassigning to bug squad

Assignee: balcaen.john => bugsquad

Manuel Hiebel 2012-01-16 14:57:09 CET

Assignee: bugsquad => dmorganec

Comment 7 Manuel Hiebel 2012-01-20 12:38:50 CET
*** Bug 4200 has been marked as a duplicate of this bug. ***

CC: (none) => junk_no_spam

Comment 8 Frederik Himpe 2012-01-20 13:11:25 CET
Bit Twister, could you attach your complete kdmrc? Then we can compare it to the orginal one and see which (wrong) modifications have been made by msec.
Comment 9 Bit Twister 2012-01-20 14:14:46 CET
Created attachment 1396 [details]
alpha3 kdmrc
Comment 10 Frederik Himpe 2012-01-20 14:40:47 CET
Here's a diff of the default kdmrc and your broken one. 

# diff -u /usr/share/config/kdm/kdmrc kdmrc.broken 
--- /usr/share/config/kdm/kdmrc 2011-12-29 13:26:25.000000000 +0100
+++ kdmrc.broken        2012-01-20 14:34:54.757000315 +0100
@@ -65,7 +65,7 @@
 ServerVTs=-7
 # TTYs (without /dev/) to monitor for activity while in console mode.
 # Default is ""
-ConsoleTTYs=tty2,tty3,tty4,tty5,tty6
+ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
 # Where KDM should store its PID (do not store if empty).
 # Default is ""
 PidFile=/var/run/kdm.pid
@@ -189,7 +189,7 @@
 # Additional arguments for the X-servers for local sessions.
 # This string is subject to word splitting.
 # Default is "-nolisten tcp"
-ServerArgsLocal=-deferglyphs 16 -nolisten tcp
+ServerArgsLocal=-nolisten tcp
 # Ping remote display every that many minutes.
 # Default is 5
 #PingInterval=5
@@ -250,14 +250,14 @@
 AllowRootLogin=false
 # Allow to log in, when user has set an empty password?
 # Default is true
-AllowNullPasswd=false
+AllowNullPasswd=true
 # Who is allowed to shut down the system. This applies both to the
 # greeter and to the command FiFo.
 # "None" - no "Shutdown..." menu entry is shown at all
 # "Root" - the root password must be entered to shut down
 # "All" - everybody can shut down the machine
 # Default is All
-AllowShutdown=None
+AllowShutdown=All
 # Who is allowed to abort active sessions when shutting down.
 # "None" - no forced shutdown is allowed at all
 # "Root" - the root password must be entered to shut down forcibly
@@ -282,7 +282,7 @@
 # The file (relative to $HOME) to redirect the session output to. This is
 # a printf format string; one %s will be replaced with the display name.
 # Default is ".xsession-errors"
-ClientLogFile=.xsession-errors-%s
+ClientLogFile=.xsession-errors
 # Whether KDM's built-in utmp/wtmp/lastlog registration should be used.
 # Default is true
 #UseSessReg=false
@@ -394,7 +394,7 @@
 # If this is true, the password input line is focused automatically if
 # a user is preselected.
 # Default is false
-FocusPasswd=false
+FocusPasswd=true
 # The password input fields cloak the typed in text.
 # If this is true, the entered password is echoed as bullets. Otherwise,
 # no feedback is given at all.
@@ -467,7 +467,7 @@
 ServerCmd=/usr/bin/X
 # Additional arguments for the X-servers for local sessions.
 # This string is subject to word splitting. Default is ""
-ServerArgsLocal=-nolisten tcp
+ServerArgsLocal=
 # Additional arguments for the X-servers for remote sessions.
 # This string is subject to word splitting.
 # Default is ""
@@ -492,9 +492,9 @@
 # Default is false
 #ResetForAuth=true
 # See above
-AllowNullPasswd=true
+AllowNullPasswd=
 # See above
-AllowShutdown=All
+AllowShutdown=
 # Enable password-less logins on this display. USE WITH EXTREME CARE!
 # Default is false
 NoPassEnable=false
@@ -502,13 +502,14 @@
 # "*" means all non-root users. @<group> means all users in that group.
 # Default is ""
 NoPassUsers=
+AllowShutdown=All
 
 # Greeter config for local displays
 [X-:*-Greeter]
 # See above
-PreselectUser=None
+PreselectUser=
 # See above
-FocusPasswd=true
+FocusPasswd=
 # Specify whether the greeter of local displays should start up in host chooser
 # (remote) or login (local) mode and whether it is allowed to switch to the
 # other mode.
@@ -534,7 +535,7 @@
 #ServerVT=7
 # Enable automatic login. USE WITH EXTREME CARE!
 # Default is false
-#AutoLoginEnable=true
+AutoLoginEnable=false
 # If true, auto-login after logout. If false, auto-login is performed only
 # when a display session starts up.
 # Default is false
@@ -544,7 +545,7 @@
 #AutoLoginDelay=10
 # The user to log in automatically. NEVER specify root!
 # Default is ""
-#AutoLoginUser=fred
+AutoLoginUser=
 # The password for the user to log in automatically. This is NOT required
 # unless the user is logged into a NIS or Kerberos domain. If you use this
 # option, you should "chmod 600 kdmrc" for obvious reasons.
@@ -555,7 +556,7 @@
 # Default is false
 #AutoLoginLocked=true
 # See above
-ClientLogFile=.xsession-errors
+ClientLogFile=
 
 # Greeter config for 1st local display
 [X-:0-Greeter]
Comment 11 Bit Twister 2012-01-20 15:19:52 CET
(In reply to comment #10)
> Here's a diff of the default kdmrc and your broken one. 
> 
> # diff -u /usr/share/config/kdm/kdmrc kdmrc.broken 

I am not real sure it is an msec issue. But then again I have no clue as to what is going on during systemd boot.  :)

>  # TTYs (without /dev/) to monitor for activity while in console mode.
>  # Default is ""
> -ConsoleTTYs=tty2,tty3,tty4,tty5,tty6
> +ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
  <snip, snip>

kdmrc was created during runlevel 5 boot. I did not use msec to make any modifications. 

This was the only time I can remember booting runlevel 5 after a clean install with all updates applied.
Comment 12 Marja Van Waes 2012-05-12 10:06:07 CEST
Trying to ping 41 bug reports in one move, because nothing has happened with them for more than 3 months, they still have the status NEW or REOPENED, there is no "OK" on the Whiteboard and severity and priority are "normal" or higher.

Is this one still valid for Mageia 2 rc?

If it is and you're the assignee, please set status to ASSIGNED if you think this bug was assigned correctly. If for work flow reasons you can't do that, then please put OK on the whiteboard instead.
If it wasn't assigned correctly, please assign back to Bug Squad and explain.
Comment 13 Bit Twister 2012-05-12 16:45:02 CEST
(In reply to comment #12)

> Is this one still valid for Mageia 2 rc?

Those messages no longer show up in my /var/log/messages with a clean Mageia-2-rc-x86_64-DVD.iso + updates + urpme --auto-orphans

CC: junk_no_spam => (none)

Comment 14 Manuel Hiebel 2012-05-12 18:54:33 CEST
closing then, thanks.
Comment 15 Manuel Hiebel 2012-05-12 18:54:44 CEST
closing then, thanks.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.