Friday, October 03, 2008

KDE4: Resolving the "call to lnusertemp failed" issue after adding new user

A strange thing happened the other day. I was adding a guest user to my pc using Mandriva's KDE4 control panel. I created the guest user and tried logging in back to my primary account.

KDE threw an error message "call to lnusertemp failed {temporary directories full?} and crashed back to the login screen.

I immediately went to my terminal 1 (ctrl + Alt + F1), logged in as root and typed in

$ df -h
/dev/sda1 33G 5.3G 26G 18% /
/dev/sda2 19G 17G 2.9G 85% /media/hd

And I could see I had over 26 GB of free space left. I decided to check the permission of my home directory, just in case..

$ ls -sl /home
4 drwx--x--x 39 guest guest 4096 2008-10-03 00:35 anoj/
4 drwxr-xr-x 23 guest guest 4096 2008-10-03 00:16 guest -> anoj


Strangely, Kde seemed to have assigned ownership of my home to the guest user. I assigned the ownership back to my primary "anoj" user.

$ cd /home
$ chown -R anoj anoj


Deleted the symbolic link for the "guest" home directory and created a new directory "guest"

$ rm guest
$ mkdir guest
$ chown guest guest


And I tried logging in as "anoj" and Voila!, I was back in my familiar KDE environment.

Post a Comment