Ubuntu 12.04 cannot login, bounces back to login splash
Hi,
I'm unable to login as a regular user after a reboot. At the lightdm splash screen, I type my password and hit enter. The screen flashes to console, then I'm thrown back to the login splash. I get the same results with kdm. (I have not been able to get gdm running to test it: the gdm splash never appears).
All packages are up-to-date.
Deleting ~/.Xauthority does not help.
Removing auto-updating wallpapers (gtk-sunlight) does not help.
I have 37 GB free in my home directory and 4 GB in /
I am not able to log in to gnome classic either (gnome-
I *am* able to log in as guest. I have a total of two user accounts and am also able to log in as the other user through lightdm, so I suspect there is something going on with the settings for my regular user.
Tanmoy
I'm on a Dell Inspiron 1420 laptop.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu lightdm Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tanmoy
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
You could carefully go through all the stuff in your faulty account (from the account you can access). It will take ages to find the faulty configuration file. You could start by getting rid of your .profile. My guess is that it would be easier to rescue any data you need from your old account and delete it.
Revision history for this message
|
#2 |
Press CTRL+ALT+F1 and log in there and run:
sudo chown -R $USER:$USER $HOME
Then press CTRL+ALT+F7 and try to log in
Revision history for this message
|
#3 |
Right, I followed Barry's suggestion and somewhat painfully grafted my settings on to a new account, deleted the old account and renamed back to the old account. The system is back in working order, but the problem remains a mystery. It would have been interesting to try actionparsnip's suggestion first, but oh well!
Thanks,
Tanmoy
Revision history for this message
|
#4 |
Actionparsnip's solution worked! Thank you! But I have no idea how I changed permission on my account!
And if I had to reset my account each time I messed up something... well I would be using Windows by now. So you should have waited for solution a bit longer TanMoy!
Revision history for this message
|
#5 |
If you don't use sudo for GUI programs you won't get this issue. Commands lke:
sudo gedit
sudo nautilus
will CAUSE this as it is not right. To run GUI apps with root access use:
gksudo gedit
gksudo nautilus
And it won't make an issue.
Revision history for this message
|
#6 |
Thank you actionparsnip! The solution works for me!
Revision history for this message
|
#7 |
Thanks for the info actionparsnip, it worked on my desktop.
Revision history for this message
|
#8 |
actionparsnip's solution just work for me as well. Thank you! Also thank you for the insight on how to properly run GUI apps with root access.
Revision history for this message
|
#9 |
i have similar problem , i used sudo chown -R $USER:$GROUP $HOME which works fine
Revision history for this message
|
#10 |
I had similar problem and actionparsnip's solution helped, thank you.
I am just curious, how does using sudo instead of gksudo cause the issue? What is the basic difference? Could somebody please explain?
Revision history for this message
|
#11 |
www.psychocats.
GUI applications need more to be setup to run. Sudo is not suitable and is why gksudo (and kdesu in KDE) exists. Technically you can use gksudo for GUI and CLI commands. I like to correct people giving guides for things when they use sudo incorrectly. It means fewer people break their OS which in turn the community needs to spend more time fixing what is easily avoidable.
Revision history for this message
|
#12 |
Thanks actionparsnip for the solution and for the explanation for the cause of the problem. Here is the summary of what happened to me, which may be helpful to others: My problem occurred because I wrongfully edited /etc/X11/xorg.conf.
when I tried to restart X with sudo kill <X process ID> (usually this automatically restarts X for some reason) it failed.
sudo reboot, and i couldn't get the gui, the same error occured
CTRL-ALT-F2 and corrected the xorg.conf file
sudo startx, and then this login problem started,
I could login to guest but not my account. I noticed that .Xauthority had root ownership. I tried actionparsnip's advice and everything works. I think the problem occurred because of the sudo startx, and this caused a change in ownership of the .Xauthority file. Am i right?
gksudo is the way to go :)
Revision history for this message
|
#13 |
Yes. thats exactly it. gksudo for GUI apps and not sudo. Technically you can use gksudo for both.
Revision history for this message
|
#14 |
actionparsnip solution did not work for me. I get only a lot of Input/output error
Revision history for this message
|
#15 |
I tried the method of actionparsnip but failed. Is there anyway I can check the possible cause, like log file?
Revision history for this message
|
#16 |
I saw the command "sudo gdm start" in another answer and tried. It returns
gdm-binary[3050] : WARNING: GdmDisplay: display lasted 0.073876 seconds
gdm-binary[3050] : WARNING: GdmDisplay: display lasted 2.524756 seconds
and then it did not accept anything until I stopped it with Ctrl-Z.
Revision history for this message
|
#17 |
actionparsnips solution worked for me too.
.Xauthority was the offending file for me. I'd been trying to install fglrx to resolve some overheating problems. Presumably amdconfig also changes the .Xauthority? Otherwise I don't know.
Revision history for this message
|
#18 |
So I stumbled upon this issue aswell.
Tried rm ~/.Xauthority
and the sudo chown -R stuff .
Turns out I had installed NVM, the Node.js Version manager and it sourced it to my ~/.profile .
When I tool a look at my ~/xsession-errors it showed me that there was an error with the ~/.nvm/nvm.sh file ,
so I rm -rf ~/.nvm and lightdm worked again.
Revision history for this message
|
#19 |
I'm new to Ubuntu and I struggled for hours with CTRL-ALT-F1 (or F2 etc.) not working to get to a terminal I could use at the lightdm login screen like some posts say you can do. I have a Dell Inspiron 14R laptop, not sure why CTRL-ALT-F1 won't work. If you have this issue see http://
login yourusername
You will need to provide your user password. This should give you a normal shell terminal. The root shell would not display the output of normal commands, like "ls". Not sure why. But when you login to your account the terminal behaves normally, you can use vi, etc. Removing .Xauthority did work for me. (Yeah!)
sudo rm .Xauthority
Logout of your user account to get back to the root shell
logout
then
exit
to get back to the recovery screen, then proceed with normal boot. Initially I got a very low resolution Ubuntu desktop and my second monitor was not recognized. After a hard boot all returned to normal.
Not sure what caused my system to stop recognizing my login, but I've logged in and out a few times now and all seems well.
Revision history for this message
|
#20 |
Hi,
I am having a similar problem.
I have created another user account and I can login to that. But I could not copy my home folder to the new user account, as it asks for permissions. Also I cant use my programs in the new account.
How can I copy my folders without ruining everything? an easy way to do that?
How can delete the old one later and rename the new one as the old one? will this make my programs work back again?
Thanks a lot in advance
Best
Revision history for this message
|
#21 |
Hi
I followed actionparsnips suggestion, successfully login but horrible thing is my folders,data not found,my desktop is empty, other default folders(home-> {Downloads,
is there any way to get back my data?
thanks
Revision history for this message
|
#22 |
Hi,
I face the same problem. I did use sudo gedit, out of ignorance and now I am not able to login to my Unity from any of my accounts. I tried creating a new account and tried to login thru that, but it would still not work.
Request someone to help me out of this mess.
Thanks.
Revision history for this message
|
#23 |
Since my machine was new I re installed unbuntu 12.04 on my laptop. I faced this problem I guess after I pressed update to 14.04 I guess...the update dosnt seem to have completed and I got stuck at login....did all changed user, used authority command etc etc what ever I could get from forum..
But I guess a dedicated helpline will be really useful or if some Linux champs can give their contacts...first time user really have some tough time getting used to Ubuntu/linix
Thanks
Revision history for this message
|
#24 |
Thank you for the advice "actionparsnip" your solution worked for me, I had screwed my x-server settings by installing "mesa" related libraries while preparing my Linux machine for Android build. I had to reinstall the "ubuntu-desktop xorg" which changed my .Xauthority file.
Now i have access to my sessions.
Thank a lot.
Revision history for this message
|
#25 |
Your solution worked for me "actionparsnip".
I created other account and was using that for some months.
Now finally able to login to my account.
Thank you
Revision history for this message
|
#26 |
I am having the same issue
after try to login from:
CTL+ALT+F1
then chown
then CTL+ATL+F7
the issue still resume
notice the the username form GUI login page different
Revision history for this message
|
#27 |
Note: I couldn't login as guest (the same issue)
Revision history for this message
|
#28 |
@actionparsnip Why do you make things so complex by creating so many commands? Why just use a script to replace sudo, it could automatically judge which command "kdesu" or whatever should be used. Why do you make so many troubles to the users?
Revision history for this message
|
#29 |
Two points here
I don't make the OS. I'm a user, just like you are. Ranting at me does absolutely nothing.
Ubuntu now has sudo integrated into polkitd so can be used for GUI applications. The user is on 12.04 which I don't believe has been sorted. Trusty, Vivid and Wily (and beyond) can have GUI applications ran with sudo. In Wily, gksudo is not even installed by default.
OK?
Revision history for this message
|
#30 |
actionparsnip . . .
I obviously don't know if you're still "hanging around here" but on the off-chance you are, many thanks! This just happened to me in 14.04.1. I have had so many weird things happen over the years in Linux. (all flavors) This machine has been sitting for well over 6 months. I just didn't want to "blow it away."
But tonight I was going to fix it or start over. I ran in to your post, tried it, it worked, I couldn't believe it was that simple to resolve.
Things like this in Linux make me nuts. (well more nuts than I already am)
I wish I knew for sure what I did to cause this. (but have no idea)
Anyway, I appreciate you tsaking the time to post here.
Don . . .
Revision history for this message
|
#31 |
If you use gksudo to launch GUI applications instead of sudo then you won't get this issue.
Revision history for this message
|
#32 |
actionparsnip . . .
If you could take a minute or one more minute to help this old fellow understand, why would using "sudo "task/function" change my ownership rights to my home directory "for any reason!" I didn't "chown" anything and for the life of me, I can't understand why Linux guru's would allow this to happen. The only acceptable answer to me here, is, "It's a bug." Is it?
Again, I'm grateful for the "fix," but I still don't like that it happened at all.
I kind of compare this to "RUN AS ADMINISTRATOR" in Windows, and have never had my user rights changed to any of my files or directories no matter what I do as ADMIN.
I realized this is likely a lack of "Linux understanding" on my part, but this kind of issue is just one of myriads of issues over the last 20 years of Linux.... It seems "it's always something."
Why not warn me, say, something like "If you do this, this will happen." (or similar) ------sudo ≠ chown!------
Thanks !
Revision history for this message
|
#33 |
Open a new terminal ctrl + alt +f2 and run sudo apt-get update and apt-get upgrade. This worked for me :)