LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-19-2002, 02:39 PM   #1
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
locked out of X


i don't know what happened, how it happened, or why it happened, but i am locked out of X. I can startx as root, but not as my normal user. It gives me some bull about can't lock Xauthority or something to that effect. This happened one other time and i just wiped the hdd out and started over. i really don't want to take the cheap way out this time and lose all of my work that i have put into the system this time. I did already recompile the kernel. I thought it may help, but it didn't. PLEASE HELP ME.
 
Old 08-19-2002, 03:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
In your home directory:
rm .Xauthority
If it's the only problem it'll work again.
 
Old 08-19-2002, 03:42 PM   #3
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
i removed .Xauthority from my home directory. still didn't work. rebooted, still didn't work.

any other possible things that i can try?
 
Old 08-19-2002, 04:28 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
Could you copy there the error you get? I know it isn't easy, but it'd help all people trying to solve your problem.
 
Old 08-19-2002, 06:34 PM   #5
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
bash# startx
xauth: timeout in locking authority file /home/user/.Xauthority
xauth: timeout in locking authority file /home/user/.Xauthority
xauth: timeout in locking authority file /home/user/.Xauthority

then KDE starts and tells me that something is screwed up, so i press Ctrl + Alt + Bkspce to logout. after you had me delete .Xauthority there is another error at this point.

cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
cat: /home/user/.Xauthority directory or file missing
 
Old 08-20-2002, 02:40 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
Now try with new, empty .Xauthority. To create it use
touch ~/.Xauthority
Then startx again. In case of errors, copy them.
 
Old 08-22-2002, 11:13 PM   #7
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
i tried that and it still did the exact same thing. same errors were generated. it tells me that the DCOPSever cannot be initialized and therefore KDE cannot start.
 
Old 08-23-2002, 04:50 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
Now it's KDE problem... Try with another window manager (create .xinitrc in your home firectory and put startgnome, startwindowmaker or any other command to run a window manager).
Are you sure your KDE is properly configured?
 
Old 08-26-2002, 02:05 AM   #9
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
i have been using KDE since i installed slackware. i tried to install yahoo like another member told me, and then the next thing that happened was no more KDE. i'm not real happy about it. I know there has to be a way to fix it. I have to have KDE, i can't live without it.

i'm not sure what you mean by
Quote:
create .xinitrc in your home firectory and put startgnome, startwindowmaker or any other command to run a window manager
do i create it just like you had me create .Xauthority? and how do i "put" that command?
i am a fast learner, but i am very new.
 
Old 08-26-2002, 02:19 AM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
To 'create' xinitrc, you can use any text editor you'd like. Make the file in your home directory, and simply type the lines Mara said:
startgnome
startwindowmaker (actually I thought it was startwm, but I don't know)
startkde

OR these lines are what I use:
#!/bin/bash

#exec kde
#exec gnome
exec gkrellm &
exec fluxbox

And that's it, I think anyway.
 
Old 08-26-2002, 04:00 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
And copy the erros connected with DCOP, maybe it's quite easy to fix.
 
Old 08-28-2002, 12:09 PM   #12
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
Try copying the .Xauthority from another users's directory over.

You could also try adding a new user to the system, logging in as them and starting up X.
 
Old 08-28-2002, 02:02 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732
try adding this line to the top your .xinitrc, it will generate .Xauthority for your display:

xauth generate $DISPLAY . trusted &
 
Old 10-09-2002, 05:57 PM   #14
chaparral
LQ Newbie
 
Registered: Oct 2002
Location: Tennessee
Distribution: Slackware 8.0
Posts: 1

Rep: Reputation: 0
This exact same thing happened to me this morning. The problem was that ownership of my home directory was changed to root.root.

I don't know why it happened. I had su'ed in my home directory to run pkgtool (Slackware) to install gnucash.tgz that I had downloaded. gnucash wouldn't launch, so I used pkgtool to remove the package. The next time I booted, I couldn't launch X unless I was logged in as root. I experienced every error that the original poster did. Only when I got a permission error when I tried to rm .Xauthority from my home directory did I think to check ownership of my ~/.

FWIW
Terry
 
Old 10-09-2002, 07:01 PM   #15
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 30
To use windowmaker, type wmaker.inst - it will add the relevant entry into your .xinitrc
 
  


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
locked out kwickcut Mandriva 6 11-14-2005 10:09 PM
Locked out of SU... wiskic10_4 Linux - Newbie 6 12-03-2004 06:49 PM
Locked out of RH 9 carmoda Linux - Security 3 12-16-2003 09:44 AM
Locked out downinthemine Mandriva 1 10-28-2003 04:00 PM
Locked out captain_bogus Linux - Newbie 11 08-11-2003 04:32 PM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
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