LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-08-2009, 04:37 PM   #1
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Unhappy Session only lasted less than 10 seconds?


HELP!

I had to stop working on my Linux set-up of ZenCart for a few weeks. When I came back, turned the system on and logged in I got the Dialog Box which starts out:

Quote:
Your session only lasted less than 10 seconds. etc...
Since I had not even had the system turned on for about 3 weeks, this caught me completely by surprise. I can't get past this. Even by trying to login in as Root.

How do I get back into the system?

Thanks
 
Old 12-08-2009, 04:42 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Have you tried rebooting or booting from a live-cd/rescue disk?
 
Old 12-08-2009, 06:31 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Edit: Delete.

Last edited by evo2; 12-08-2009 at 06:35 PM. Reason: Just checked OPs URL, and am no longer inclined to help.
 
Old 12-08-2009, 08:10 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Hit ctrl+alt+f1. Can you log in at this text prompt? What errors are there?
 
Old 12-09-2009, 05:58 AM   #5
Vinter
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Rep: Reputation: 19
Andre: The box with this message should actually contain an option to display the relevant log files. Can you post their content? (If the box doesn't have said option, just do "cat /var/log/Xorg.0.log".)
 
Old 12-17-2009, 03:32 PM   #6
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Reboot from live-cd

Quote:
Originally Posted by rweaver View Post
Have you tried rebooting or booting from a live-cd/rescue disk?
I have not. I don't have one. I did a net-install.
 
Old 12-17-2009, 03:35 PM   #7
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Command Prompt Login Error

Quote:
Originally Posted by AlucardZero View Post
Hit ctrl+alt+f1. Can you log in at this text prompt? What errors are there?
I receive the following error.
Quote:
No directory, logging in with HOME=/
 
Old 12-17-2009, 03:50 PM   #8
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Errors on start-up and Login

Quote:
Originally Posted by Vinter View Post
Andre: The box with this message should actually contain an option to display the relevant log files. Can you post their content? (If the box doesn't have said option, just do "cat /var/log/Xorg.0.log".)
Quote:
The first thing the GUI shows is an Error of:
Your home directory is listed as: '/home/debian' but it does not appear to exist. Do you want to log in with the (root) directory as your home directory? It is unlikely anything will work unless you use a failsafe session.
If I click 'No' I get the login screen. My login then results the same error message.

If I click 'Yes' I get:

Quote:
User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's$HOME directory must be owned by user and not writeable by other users.
After clicking 'OK' I get the error message:
Quote:
Your session only lasted less than 10 seconds. If you have not logged out youeself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem.
When I click on 'View details' I see
Quote:
Unable to create ~/.gnome2 directory: Permission denied.
The only way to post the LOG files, that I know of, requires me to be logged in on that computer. Which I am unable to do.
 
Old 12-17-2009, 03:50 PM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Your home directory disappeared. Put it back.

Note: logging in as root should work. Or mounting the disk from a live CD.
 
Old 12-17-2009, 03:55 PM   #10
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Login as root on the console of the machine, verify that the /home partition is mounted correctly and exists. If it does, verify the entry for the user account in the passwd file.
 
Old 12-17-2009, 05:39 PM   #11
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Your home directory disappeared. Put it back.

Note: logging in as root should work. Or mounting the disk from a live CD.
OK. How do I 'Put it back.'?

I can only login as 'root' from the command line. The login manager will not allow a 'root' login from the Login GUI.
 
Old 12-17-2009, 08:40 PM   #12
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Login as root on the console of the machine, verify that the /home partition is mounted correctly and exists. If it does, verify the entry for the user account in the passwd file.

If it's not there, mount it or create it.
 
Old 12-18-2009, 05:30 AM   #13
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
How to mount /home partition

Quote:
Originally Posted by AlucardZero View Post
Login as root on the console of the machine, verify that the /home partition is mounted correctly and exists. If it does, verify the entry for the user account in the passwd file.

If it's not there, mount it or create it.
Sorry, what do you mean 'mounted correctly'? How would I mount it? Also, where, in the Linux directory structure, would it have to be created, /etc, /bin, /usr?

I installed Midnight Commander. There is a directory called /HOME.

Which passwd file? I found about 10 different files called paswd.

I even created a new user. Yet, I am unable to login, even with the new user, to either KDE or Gnome. If I can login to the Console, why can't I login to the Desktop?

Thanks

Last edited by AndeAnderson; 12-18-2009 at 07:22 AM.
 
Old 12-18-2009, 08:33 AM   #14
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Does /home exist??? Not /HOME, Linux is case sensitive

Post the output of the following:
Code:
ls -l /
cat /etc/fstab
mount
df -h
ls -l /HOME
grep username /etc/passwd
The GUI stuff really wants your home directory to exist. The console login isn't so picky.

Last edited by AlucardZero; 12-18-2009 at 08:35 AM.
 
Old 12-18-2009, 11:21 AM   #15
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
How to post when only logged into Console?

Quote:
Originally Posted by AlucardZero View Post
Does /home exist??? Not /HOME, Linux is case sensitive

Post the output of the following:
Code:
ls -l /
cat /etc/fstab
mount
df -h
ls -l /HOME
grep username /etc/passwd
The GUI stuff really wants your home directory to exist. The console login isn't so picky.
Sorry, as I said earlier, I am unable to post anything from the broken Debian since I can only login at the Command Prompt. And, there is no GUI Interface. I am using a back-up laptop for getting to the website.

How would I post from the Command Line?

Using Midnight Commander I can see a folder called /home. Inside that folder are the user names. So, apparently the /home folder does exist.

Thanks
 
  


Reply

Tags
failed, login



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
session only lasted less than 10 seconds. Nadishka Linux - Software 4 10-16-2009 12:39 PM
Your session only lasted less than 10 seconds... Korneel Linux - Software 14 05-24-2009 08:29 AM
HELP: Session lasted for only less than 10 seconds. pockie Linux - General 1 05-31-2008 01:13 AM
Your session only lasted less than 10 seconds smruthi Linux - Newbie 1 05-22-2008 08:32 AM
Your session only lasted less than 10 seconds. Atif Khan Linux - Newbie 7 04-25-2008 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:05 PM.

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