LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 08-24-2005, 07:35 PM   #1
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Rep: Reputation: 30
[SOLVED] Suddenly can't login


I've been using ubuntu hoary as my main os for a few months with no major problems... until now.
Today I loaded up ubuntu but when I tried to login, the screen went black for a few seconds then returned to the kdm login screen.
I tried the console login but when I typed startx as user it failed and said waiting for x server to shut down.
I tried startx as root and gnome loaded up.
I've tried a few more times today with the same result.
The last time I used ubuntu all I did was check for updates (there were none so nothing new has been installed), checked my emails and browsed the web for a while so I don't understand what I could have done to cause the problem.

Last edited by fannymites; 08-25-2005 at 06:00 PM.
 
Old 08-24-2005, 07:48 PM   #2
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Have a look at /var/log/xorg.0.log. It might tell you what is happening.
 
Old 08-24-2005, 07:49 PM   #3
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Also check if there is a lockfile in your /home. Deleting this can set things up again ok. These file soccasionally stay behind if a shutdown was unclean.
 
Old 08-24-2005, 08:04 PM   #4
jyank
LQ Newbie
 
Registered: Mar 2005
Distribution: Ubuntu 5.04
Posts: 5

Rep: Reputation: 0
Seems to be a permissions problem.

Try this, login to gnome under root and then use nautilus and browse to /home/

Right click on the folder and go to properties, then tab ober to permissions.

It should say
File owner: (your username)
File group: users

I had this problem as well a while back, I hadn't done anything but for some reason the permissions of home got screwed up so I was unable to boot. Not sure really what caused it, but this fixed my problem.
 
Old 08-24-2005, 09:04 PM   #5
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Thankyou for the replies.

@ jyank
I checked the permissions and even used chown -R on my home folder and nothing needed changing.

@ refdoc
There is no lockfile in my home directory and I've been through Xorg.0.log and all I could find was -
Code:
(WW) `fonts.dir' not found (or not valid) in "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID".
	Entry deleted from font path.
And the very last line at the bottom of the log was this
Code:
Could not init font path element unix/:7100, removing from list!
I don't understand what it means.
 
Old 08-25-2005, 04:08 AM   #6
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Re unix:7100 - here X is looking for a font server. As everything else in LInux/Unix, the supply of fonts is something modulised and network transparent. I do not see much sense in this for you and me home users, but anyway...
You can ignore this as usually the part in xorg.conf mentioning this is followed by a whole bunch of other font paths, which acc how you describe the logs were found ok.

Re not being able to log in, try deleting/moving .Xauthority in your home directory. This is the lock for X, telling it that X is already running and disallowing you a second login on the same machine. iT occ remains stuck, particularly on an unclean shutdown
 
Old 08-25-2005, 05:48 PM   #7
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Tried removing .Xauthority but still no go.
I've tried changing the login manager to gdm and it still failed but this time I got a small box saying the session had only lasted 10 seconds and it asked if I wanted to view a log (I've forgotten what it was called).
I chose yes and got this line -
Code:
mkdtemp: private socket dir: permission denied
Make any sense?

[EDIT] I've done some googling and found the answer - the permissions were wrong on the /tmp directory which was fixed by doing chmod 1777 /tmp
I don't know how the permissions got changed but everything seems to be back to normal again now. Problem solved.

Last edited by fannymites; 08-25-2005 at 06:00 PM.
 
Old 08-25-2005, 07:25 PM   #8
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Good!

Still not sure though what is gone wrong here... Having said this, do you remember whether your date was off in any way? My ibook did this occ when its battery was bled dry - lost its date, reverted somehow to 01/01/1900 and then did not allow me to start gnome - X worked though.
 
Old 08-25-2005, 08:12 PM   #9
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
It's funny you should say that. Everytime a certain package is updated (I can't remember which one) it reconfigures the time and on ubuntu, for some reason (probably something to do with me living in England, BST and all that) it always seems to mess things up and sets my time one hour fast and I always have problems getting it back so that it's right in ubuntu and my other os's.
Although I said in my original post that I hadn't done anything that could've caused a problem, you have jogged my memory and I was actually messing with the time settings to try to get it right. If it was around midnight then it may just have messed up the date.

So to sum up. It looks like it was my mistake (most linux problems I get turn out to be).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Root login suddenly dead patrick-slack Linux - Security 9 08-25-2005 08:03 AM
Suddenly no network henningolsen36 Linux - Newbie 2 05-27-2005 03:48 AM
kybd input suddenly not working after login; OK if 'startx' from console OpenMacNews Suse/Novell 7 02-10-2005 01:41 PM
suddenly having ftp login problems since i downgraded libsafe so i could add sites Amaris4GOW Linux - General 2 04-09-2004 02:07 PM
PC suddenly lagging SiriusAB Linux - Newbie 3 05-22-2003 12:33 AM


All times are GMT -5. The time now is 10:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration