kdm configuration can't be saved

Bug #592110 reported by Álvaro M. Recio
144
This bug affects 28 people
Affects Status Importance Assigned to Milestone
Kubuntu PPA
Fix Released
Medium
Alessandro Ghersi
kdebase-workspace (Ubuntu)
Fix Released
Medium
Alessandro Ghersi

Bug Description

After upgrading to KDE SC 4.5 Beta 2, kdm options can't be changed using the "system settings" module. If the user tries to save the new configuration a dialog appears with a message similar to this:

"Unable to install new kdmrc file from
/tmp/kde-root/kcmshellik4466.tmp
and new backgroundrc file from
/tmp/kde-root/kcmshelldT4466.tmp"

And the configuration is not updated.

During the upgrade, apt showed a warning from adduser about the ownership of /var/lib/kdm being different from the user being created. This is the original message in Spanish:

"adduser: Aviso: El directorio personal `/var/lib/kdm' no pertenece al usuario que está creando."

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thanks for submitting this issue and helping make Kubuntu better!

What is the home directory that is configured for the particular user. It looks like it is set to /var/lib/kdm, which it certainly should *not* be!

Thanks again for your support!

Changed in kubuntu-ppa:
status: New → Incomplete
Revision history for this message
Daniel Hahler (blueyed) wrote :

The kdm configuration should have nothing to do with the user's home directory, or am I missing something?

Revision history for this message
Ralph Janke (txwikinger) wrote :

Kdm saves the changes that a user makes to the default configuration inside a directory inside the user's home directory. Kdm cannot be started without having access to those files.

However, maybe I misread the meaning of the issue with adduser.

Could you please provide us with the associated dpkg log in /var/log to be able to see the context of the error message.

Thanks

Revision history for this message
Sam Volojiy (svolo) wrote :

I get the same error. my dpkg.log is empty. More on this - the settings seem only to relate to kdmrc (login screen). The login screen settings window is also missing the theme on qt4 libraries which probably points to misconfigured root settings. But I do not know how to check.

Changed in kubuntu-ppa:
status: Incomplete → Confirmed
Revision history for this message
Ralph Janke (txwikinger) wrote :

Setting the report back to incomplete, we do need logs in order to work on it.

Changed in kubuntu-ppa:
status: Confirmed → Incomplete
Revision history for this message
Álvaro M. Recio (naproxeno) wrote :

Sorry for the late reply.

I'm attaching dpkg.log and term.log. You can find the relevant entries by looking for "kdm (4:4.4.85-0ubuntu1~lucid1~ppa1)" in them. Let me know if you need any other file or information.

As you can see, I tried reinstalling kdm several times to try to correct the bug but the result was always the same. I can confirm that my settings window is also missing the theme of the rest of the desktop so I think it's the same kind of bug that Sic Volo is suffering.

Revision history for this message
Álvaro M. Recio (naproxeno) wrote :

Here is term.log.

Changed in kubuntu-ppa:
status: Incomplete → Confirmed
Revision history for this message
Senthil (senthilkumar) wrote :

I am also having the same problem. login screen setting window is missing the theme. And also the settings can not be changed, same as the error

"Unable to install new kdmrc file from
/tmp/kde-root/kcmshellik4466.tmp
and new backgroundrc file from
/tmp/kde-root/kcmshelldT4466.tmp"

Revision history for this message
Mark Fraser (launchpad-mfraz) wrote :

Has this got anything to do with the new user/group kdm? I've not experienced the problems above as I now normally edit /etc/kde4/kdm/kdmrc by hand now so that it keeps the comments and format of the original file.

I have attached a copy of my kdmrc.

Revision history for this message
Moreno Bartalucci (moreno-bartalucci) wrote :

At least, I got back my previous user in the login box.
I did this by either:
- Remarking out (with a prepending #) the line 'GreeterUID=kdm' in the [General] section of the file /etc/kde4/kdm/kdmrc.
    - OR -
- By changing the owner of the folder /var/lib/kdm (and all the files inside it) to the user kdm.

Still the buttons in the login window are not working at all for me.
I can only log in by pressing 'enter'.
The buttons to change session, to shutdown and to login simply do nothing.

Ralph Janke (txwikinger)
Changed in kubuntu-ppa:
importance: Undecided → High
importance: High → Medium
Revision history for this message
Bruno (bruno666-666) wrote :

The login screen buttons are working with middle click, see https://bugs.kde.org/show_bug.cgi?id=239006

Revision history for this message
Ravi (ra-ravi-rav-gmail) wrote :

I have the same problem. In addition the theme of the config dialog is not oxygen or plastiqe but its like windows theme. This info might help I guess.

Revision history for this message
K900 (k0009000) wrote :

Same here, all ownership settings are correct

Revision history for this message
Jan Schnackenberg (yehaa) wrote :

I have this same problem.

I also got that "funny" message from adduser concerning the directory "/var/lib/kdm". Unfortunately I don't have that message anymore.

My /etc/passwd contains this line:

kdm:x:116:126:KDE Display Manager,,,:/var/lib/kdm:/bin/false

That directory has this contents and owners:

$ ls -la /var/lib/kdm/
insgesamt 12
drwxr-xr-x 2 root root 4096 2010-03-14 16:43 .
drwxr-xr-x 64 root root 4096 2010-05-01 00:54 ..
-rw------- 1 root root 18 2010-03-14 16:43 kdmsts

So I guess something's fishy here already.

Now, KDM seems to have a configuration here:

$ ls -l /etc/kde4/kdm/
insgesamt 60
-rw-r--r-- 1 root root 312 2009-10-23 14:18 backgroundrc
-rw-r--r-- 1 root root 181 2010-05-23 19:57 kdm.options
-rw-r--r-- 1 root root 23077 2010-06-10 15:15 kdmrc

Is this not used anymore? Doesn't seem like it because

# Greeter config for local displays
[X-:*-Greeter]
# See above
PreselectUser=Previous

seems to have no effekt whatsoever.

So:
- Where should the kdmrc really be located?
- When did this location change?
- Is /var/lib/kdm the correct location?
- Should this directory belong to the user kdm? The (spanish?) error message above seems to say "that directory doesn't belong to this user"
- If so, why does it belong to root?

Changed in kdebase-workspace (Ubuntu):
status: New → Confirmed
Changed in kubuntu-ppa:
assignee: nobody → Alessandro Ghersi (alessandro-ghersi)
Changed in kdebase-workspace (Ubuntu):
assignee: nobody → Alessandro Ghersi (alessandro-ghersi)
milestone: none → maverick-alpha-3
importance: Undecided → Medium
Revision history for this message
mudlark (mike-flycatcher) wrote :

I'm sure I have had a similar issue. My main login lost all desktop settings and they don't appear to be saved on login. On the main log in screen the passed user name isn't stored. I created a new user and the new user appears to have all the correct settings saved. I tried renamimg all the plasma files in what I think is the place where the stuff is saved , but no use.

I renamed ~/.kde and the login works prperly again. the log in screen still doesn't save the last user name.

mike

Changed in kdebase-workspace (Ubuntu):
status: Confirmed → In Progress
Changed in kubuntu-ppa:
status: Confirmed → In Progress
Revision history for this message
Alessandro Ghersi (alessandro-ghersi) wrote :

For Lucid I uploaded a new version of kdebase-workspace in Kubuntu Beta Backports, it still needs building in this moment:
https://launchpad.net/~kubuntu-ppa/+archive/beta/+packages?field.name_filter=kdebase-workspace&field.status_filter=published&field.series_filter=

For Maverick I pushed the changes in bzr, we will upload it after Alpha2

Changed in kdebase-workspace (Ubuntu):
status: In Progress → Fix Committed
Changed in kubuntu-ppa:
status: In Progress → Fix Committed
Revision history for this message
valeriodean (valeriodean) wrote :

Here all OK after fix.

Lucid, KDE 4.5 RC1.

Revision history for this message
Alessandro Ghersi (alessandro-ghersi) wrote :

Good :) Thanks for the feedback valeriodean

Changed in kubuntu-ppa:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdebase-workspace - 4:4.4.90-0ubuntu2

---------------
kdebase-workspace (4:4.4.90-0ubuntu2) maverick; urgency=low

  * Port 21_kdm_doesnt_use_kstandarddirs.diff to 4.4.90
    (LP: #592110)
 -- Alessandro Ghersi <email address hidden> Thu, 01 Jul 2010 01:48:10 +0200

Changed in kdebase-workspace (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
jhthayer (jhthayer) wrote :

I believe that I have this same bug on KDE 4.4 on Karmic, but there seems to be no backport to fix it. Ralph seems to suggest that there is some kind of configuration storage in the <user-home> directory but I cannot find one. Could someone please point out where it is to be found? Changing values in kdmrc doesn't seem to prevail over this, whatever it is.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.