Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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?
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.
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 ;-)
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.
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.
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 !!! :-)