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 11-06-2011, 07:34 PM   #1
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Rep: Reputation: 26
Question Debian hangs prior to user login


I run Debian Squeeze GNOME for some time now. But recently it stopped booting.
I still can login into single user mode as root and see logs, but when I login as usual or run startx from single user, I have black screen with round cursor (like "waiting" one) and nothing happens after that.
I checked logs and the most interesting from my point of view is in /var/log/gdm3 directory. It ends up with message
Code:
The application 'polkit-gnome-authentication-agent-1' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
What can cause this problem? What could be the cure?

If it helps, some other findings:
when systems hangs, I still can switch to parallel tty and try to login as my user in text mode. Response is:
Code:
cannot cd to /home/darkduck
and I am back to login inviation.

I don't have /etc/X11/xorg.conf file, but I have /usr/share/X11/xorg.conf.d which lists evdev, wacom and synaptic files. I only have synaptic in my laptop.
When I follow recommendations from Debian wiki page, create new .conf file and try to start X with this conf, I get absolutely black screen, and only Ctrl-C or Ctrl-Alt-F1 help.

Hope for your assistance!
Thanks!
 
Old 11-07-2011, 10:15 AM   #2
/usr/local
LQ Newbie
 
Registered: Nov 2011
Location: Hamburg, Germany
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: Disabled
Just to make sure: Did you use the same username in all cases? Was it darkduck? Can you login as root from the other virtual console? What's the output of df in all the cases (single user, before entering "startx", when logged in as root while X login is pending?)

Cheers,

Peter

Last edited by /usr/local; 11-07-2011 at 10:18 AM. Reason: Undo last edit
 
Old 11-07-2011, 11:22 AM   #3
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
"darkduck" is my username in the system.
I think I can login as root from different tty's at the same time. But not as darkduck.
I am not at that laptop at the moment, but I am sure partition has enough space. I'd say about 25% of it is in use.
 
Old 11-07-2011, 12:16 PM   #4
/usr/local
LQ Newbie
 
Registered: Nov 2011
Location: Hamburg, Germany
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: Disabled
So if you can login as root, you could check, wether /home/darkduck is really gone. If /home is a separate filesystem, you will see by "df" whether it's still mounted. Therefore I was asking for "df". Could use "mount" as well, but my eyes prefer the output of "df".

Cheers,

Peter
 
Old 11-07-2011, 02:49 PM   #5
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
/home/darkduck is still here.
/home is on the same partition as /
 
Old 11-07-2011, 02:53 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Check the permissions and ownership of your /home

Kind regards

Last edited by repo; 11-07-2011 at 02:54 PM.
 
Old 11-07-2011, 02:58 PM   #7
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
I have not checked permissions on /home, but /home/darkduck is owned by darkduck.
 
Old 11-07-2011, 03:43 PM   #8
/usr/local
LQ Newbie
 
Registered: Nov 2011
Location: Hamburg, Germany
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: Disabled
Repo is right here - if you don't have permissions to access contents of /home, the ownerschip of /home/darkduck does not matter.
On the other hand, as your system worked before, a change of the permmissions is quite unlikely.

Can you check the messages in /var/log/messages /var/log/syslog and /var/log/auth.log (as far as they do exist on your system) that are written while you where trying to login as "darkduck"?

As it seems your X Server died, a look into /var/log/Xorg.0.log (or similar) would be helpfull as well.
 
Old 11-08-2011, 03:25 PM   #9
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
OK, now I can get access to my laptop and have some time to solve the issue.

/home is owned by root, as per ls -l /
/home/darkduck is owned by darkduck

df before startx (though GNOME is trying to start in different tty) shows usage of / as 33%. Nothing changes after X -config /root/xorg.conf.new
 
Old 11-08-2011, 03:46 PM   #10
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Question

Quote:
Originally Posted by /usr/local View Post
Repo is right here - if you don't have permissions to access contents of /home, the ownerschip of /home/darkduck does not matter.
On the other hand, as your system worked before, a change of the permmissions is quite unlikely.

Can you check the messages in /var/log/messages /var/log/syslog and /var/log/auth.log (as far as they do exist on your system) that are written while you where trying to login as "darkduck"?

As it seems your X Server died, a look into /var/log/Xorg.0.log (or similar) would be helpfull as well.
Here are logs for the particular session:
messages: http://www.darkduck.com/FILES/messages
auth.log: http://www.darkduck.com/FILES/auth.log
syslog: http://www.darkduck.com/FILES/syslog
Xorg.0.log: http://www.darkduck.com/FILES/Xorg.0.log

I obviously tried to find anything useful in it, but without much success.

Last edited by darkduck; 11-08-2011 at 03:48 PM.
 
Old 11-08-2011, 06:43 PM   #11
/usr/local
LQ Newbie
 
Registered: Nov 2011
Location: Hamburg, Germany
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: Disabled
Hi Darkduck,

thanks for the logs. They confirm indeed, that you do have a permission problem ...
As Permissions usually don't change by themselves ... did I get that right, that the system did work before? Do you remember what was changed before it stopped working?
Do you have any security enhancements running? From the logs, it looks like your kernel is SELinux enabled, but you didn't activate it.

Could you please provide the output of

mount
ls -ld / /home /home/darkduck

What happens if you do a login as root and su to darkduck afterwards? Can you please provide any (error) messages that show up, when you do a

su darkduck
exit
su - darduck

Sorry, it's a bit guesswork from here ;-)

Cheers,

Peter
 
Old 11-09-2011, 02:15 AM   #12
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Quick reply: the last thing I'd done before the problem occured was installation of Pardus Corporate 2 on separate partition. I guess it broke smth, because Debian is not the only victim, but also a Mageia on another partition. But error looks slightly different there.
I'll do the experiments with su later and reply separately.
 
Old 11-09-2011, 03:14 PM   #13
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by /usr/local View Post
What happens if you do a login as root and su to darkduck afterwards? Can you please provide any (error) messages that show up, when you do a

su darkduck
exit
su - darduck
su darkduck returns
Cannot execute /bin/bash: Permission denied

su - darkduck returns
Unable to cd to '/home/darkduck'
 
Old 11-09-2011, 03:28 PM   #14
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by /usr/local View Post
Hi Darkduck,

thanks for the logs. They confirm indeed, that you do have a permission problem ...
As Permissions usually don't change by themselves ... did I get that right, that the system did work before? Do you remember what was changed before it stopped working?
Do you have any security enhancements running? From the logs, it looks like your kernel is SELinux enabled, but you didn't activate it.

Could you please provide the output of

mount
ls -ld / /home /home/darkduck
ls -ls / /home /home/darkduck returns
drwxrwx--- 26 root disk 4096 Oct 30 07:44 /
drwxr-xr-x 3 root root 4096 Sep 24 22:47 /home
drwxr-xr-x 40 darkduck darkduck 4096 Nov 6 00:11 /home/darkduck

mount returns
/dev/sda8 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda6 on /mageia type ext3 (rw)
/dev/sda7 on /kubuntu type ext3 (rw)
/dev/sda1 on /windows type fuseblk (rw,allow_other,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw)


How did you figure out that this is permissions issue? Would appreciate if you show me the place where you found it.
 
Old 11-09-2011, 03:50 PM   #15
/usr/local
LQ Newbie
 
Registered: Nov 2011
Location: Hamburg, Germany
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: Disabled
Hi,

I believe the command

chmod o+rx /

will cure your system. You should be able to log in als darkduck on the text console right afterwards. If /etc/init.d/gdm exists, a

/etc/init.d/gdm restart

should enable the graphic X login as well. If not, I suggest a reboot.

I will give some more explanation as soon as my time permits.

Hope to hear a success message in the meantime ;-)

Cheers
 
1 members found this post helpful.
  


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
Ubuntu 9.10- Blank screen on startup prior to login window mridulgattani Linux - Newbie 8 11-08-2011 06:52 PM
user login hangs (root ok) Blinker_Fluid Solaris / OpenSolaris 3 04-15-2008 09:44 AM
Stall on boot prior to login pracslipkerm Ubuntu 2 01-14-2007 07:36 PM
how to issue a message prior to login prompt for a particular user mtest Programming 19 10-30-2003 06:41 AM
KDE in Knoppix hangs on Login as diferent user cpis Debian 0 09-24-2003 10:41 AM

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

All times are GMT -5. The time now is 02:04 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