LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2002, 08:43 PM   #1
jason
LQ Newbie
 
Registered: Jun 2002
Location: Baltimore, MD
Distribution: Red Hat 7.2
Posts: 10

Rep: Reputation: 0
Unhappy User can't login with Gnome or KDE


My Red Hat Linux box shut down abnormally due to an electrical storm that came out of nowhere. Now, I'm having trouble logging back in as "jason", the user I was logged in as when the computer shut down. I can still log in as other users, including root.

When I try to log in from the graphical login prompt, the screen goes black and then comes back up with the graphical login prompt. Every other user can log in.

I was, however, able to login as user "jason" using the failsafe option under Session.

I've read a few posts on login trouble, and I have tried a few suggestions. I deleted the .gnome* files in /home/jason. When that didn't work, I removed jason (userdel jason), but kept jason's home directory. I then recreated the user jason. However, I still can't login. I also made sure that there is plenty of space on the disk.

I am also not able to login using KDE, but the login gets a little further before failing.

Any suggestions?

Thanks,
jason
 
Old 07-11-2002, 10:42 AM   #2
jason
LQ Newbie
 
Registered: Jun 2002
Location: Baltimore, MD
Distribution: Red Hat 7.2
Posts: 10

Original Poster
Rep: Reputation: 0
I've checked thru some of the logs in /var/log. I can see that a session is opened for jason, and then that session is closed after a couple of seconds. What would cause the session to be closed so quickly?

Also, I've noticed a couple of suspicious lines during bootup, indicating that /poweroff and /shutdown could not be removed (input/output error). Is this related to my problem?
 
Old 07-11-2002, 06:29 PM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Post the lines here please.

You know the other day I didn't notice a power blackout until my computer complained about my printer was off. Granted, there's an UPS under the desk.

My guess would be that some KDE/Gnome dependent files were screwed. The easy way is to log in as root, go to menu> system> user man, edit "jason" name & login to something else, then add a "jason" user with a new directory. Copy your favorites/files to there. Do NOT copy any .* files or scripts or profiles, etc. That would be what the culprit is.

Oh and I have had messed up an account that resulted in a similar scenario.

Note: you should log into the new account once before copying files. The login will produce proper directory structures.

Last edited by jetblackz; 07-11-2002 at 06:31 PM.
 
Old 07-11-2002, 10:31 PM   #4
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Sometimes it works this way . Delete the user jason without deleting his home dir .And then create the jason again. CHange the onwership and group onwership bach jo jason .
Just check it out . Sometimes it works ;-)
 
Old 07-12-2002, 08:42 AM   #5
jason
LQ Newbie
 
Registered: Jun 2002
Location: Baltimore, MD
Distribution: Red Hat 7.2
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your suggestions. I was hoping I wouldn't have to delete the user. I ended up backing up all of the non-hidden files in /home/jason, removing jason, adding jason back, and restoring the non-hidden files. It worked well enough.

For fun, I restored the hidden files. Sure enough, the problem resurfaced. If it happens again, maybe I will try to find the hidden file(s) that caused the problem.

As far as the /poweroff problem, I booted up the computer with the pre-compiled Red Hat 7.2 kernel, and then re-booted the computer with the kernel I compiled, and the problem went away.

Maybe it's time to get a UPS?

Thanks again,
jason
 
Old 07-12-2002, 01:26 PM   #6
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
You're welcome.

I got my UPS for real cheap when there was a sale. Half the regular price. I missed another sale of APC beige box for about the same price. Mine is grey, BTW. It lasts for 6+ mins on battery. I think all modern power supplies should come standard with UPS built-in. 10 mins is a good start. Like most laptops.
 
Old 07-14-2002, 10:42 PM   #7
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Well Jason ,
U don't have to worry about backing up the non-hidden files in ur home dir unless you choose to delete a user's home dir while removing a user .
Eg:- userdel -r jason will delete jason and his home . DO u wanna lose ur home !!! :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot login as user after gnome 2.12 upgrade reksav Linux - Software 2 10-12-2005 02:23 PM
HELP! Cannot Login to KDE or GNOME lennysokol Linux - Software 1 04-29-2005 10:30 PM
KDE user wants gnome GDM login. qwijibow Slackware 11 07-04-2004 09:34 AM
using KDE or gnome to login (graphical login) mep]-[isto Linux - Newbie 5 11-20-2003 12:13 PM
How 2 change from Gnome Login to KDE login Swene Linux - General 7 05-13-2002 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration