You are not logged in.
I have KDE setup, but when I try to login to KDE as a user, the screen comes right back to the login screen a couple seconds later. I can login fine as root, but I want to login as my username. What is the problem?
Offline
Are you using KDM, or another login manager?
Microshaft delenda est
Offline
KDM. Sorry for not mentioning that on my post.
Offline
Did you check the KDM log file in /var/log?
Offline
Did you check the KDM log file in /var/log?
Nope. I guess I better do that.
Offline
The file is /var/log/kdm.log
Likely it's a permissions problem- but we'd rather checkout what errors are reported before guessing.
Microshaft delenda est
Offline
I had a similar problem with GDM/Gnome due to a full partition.
Deleting some files to free up space fixed the problem.
Offline
Okay, this is getting even weirder. Now, when I either try to 'startx' as root, or login to KDE (with KDM) as root, the screen freezes on "Starting System Services" (as well as not letting me login as user). If you need me to post more information, then just give me the go, but for now, here's my /var/log/kdm.log file.
QSettings: error creating /tmp/0148693397/.qt
QSettings: failed to open file '/tmp/0148693397/.qt/qt_plugins_3.3rc'
QSettings: :sync: filename is null/empty
QSettings: error creating /tmp/0148693397/.qt
QSettings: failed to open file '/tmp/0148693397/.qt/qt_plugins_3.3rc'
QSettings: :sync: filename is null/empty
QSettings: error creating /tmp/0148693397/.qt
QSettings: failed to open file '/tmp/0148693397/.qt/qt_plugins_3.3rc'
QSettings: :sync: filename is null/empty
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
Just so you guys know, what I just posted was a part of the kdm.log file. The rest of it is the same, except the /tmp/0148693397/ part is changed with different numbers.
Offline
I did a little more tinkering and searching around. I fixed part of the problem, by editing my /etc/hosts file. I guess I forgot to set my hostname in it. Now, I can start KDE as root, but the problem starting it as a user still exists. When I do 'startx' as a user, this is the error I receive...
mkdir: cannot create directory '/home/noah/.kde' : Permission denied
mkdir: cannot create directory '/home/noah/.kde' : Permission denied
mkdir: cannot create directory '/home/noah/.kde' : Permission denied
/opt/kde/bin/startkde: line 61: /home/noah/.kde/share/config/startupconfigkeys: No such file or directory
trying to create local folder /home/noah/.kde: Permission denied
/opt/kde/bin/startkde: line 74: xmessage: command not found
/opt/kde/bin/startkde: line 76: /home/noah/.kde/share/config/startupconfig: No such file or directory
waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
xauth: timeout in locking authority file /home/noah/.Xauthority
It looks like a permissions problem. How would I fix it?
Offline
Not too long ago, something, somehow, switched the permissions, group, and ownership of my home directory to root. I was also locked out at KDM. I switched them back from the command line, and I was able to get back in again.
Offline
Not too long ago, something, somehow, switched the permissions, group, and ownership of my home directory to root. I was also locked out at KDM. I switched them back from the command line, and I was able to get back in again.
How would I do that?
Offline
An easy way is when you get to KDM, on the drop down list on the bottom right is an option for console login. Do that. It will drop you into run level 3. From there, log in as root. It's easy enough to check to see what the ownership of your user home account is:
ls -sl /home
For instance, on my machine I get this:
4 dr-xr-xr-x 2 root ftp 4096 2006-09-11 00:06 ftp
4 drwxr-xr-x 41 skottish skottish 4096 2006-09-25 20:09 skottish
If your permissions got hosed, the second line would read like:
4 drwxr-xr-x 41 root root 4096 2006-09-25 20:09 skottish
If your user home account belongs to root, then:
chown -hR <user_name> /home/<user_name>
If your user home account group is root, then:
chgrp -hR <user_name> /home/<user_name>
Offline
AWESOME!!!
I checked, and it did, in fact have my permissions hosed. I did what you said, and I can 'startx' and login to KDE just fine as a user. Thanks very much! These Arch forums are very helpful
Offline