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

Notices



Reply
 
Search this Thread
Old 09-05-2004, 10:38 AM   #1
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Rep: Reputation: 30
Question X only works with root user


I can only run X as root. When I try to access it from my user account I get the following:

timeout in locking authority file /home/joe/.Xauthority.
This error displays four times, then the screen goes to the KDE screen which displays the following:

no write access to $HOME directory (home/joe) KDE is unable to start
I click ok on this and get a window stating could not start Kserver check your installation I click ok on this and it takes me to command line which gives the following error:
QSettings: error creating /home/joe/.qt

Any ideas out there?
Thanks in advance

.


 
Old 09-05-2004, 10:42 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
try : chown joe:users /home/joe/.Xauthority

or at least read man xauth to create another one
 
Old 09-05-2004, 10:54 AM   #3
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Question

Thanks for replying. I read the man page for xauth several times
and as usual with man pages (for me anyway) ended up more confused than when I started. The weird part is it was working yesterday, I logged out, shut the machine off and then this morning when I logged in BOOM! Doesn't make any sense. I'll try the chown as you suggested and see what happens.
Thanks.



Last edited by joe83; 09-05-2004 at 10:56 AM.
 
Old 09-05-2004, 10:57 AM   #4
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
try
$ ls -l /home/joe/.Xauthority
plz post the o/p
 
Old 09-05-2004, 11:12 AM   #5
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
well,
try
1. chown, or
2. copy the root's .Xauthority to your home, or
3. delete it entirely, believe me, it may work without it !!

mustafa
 
Old 09-05-2004, 11:19 AM   #6
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Thumbs down

Quote:
Originally posted by elsheikhmh
try
$ ls -l /home/joe/.Xauthority
plz post the o/p

output is:

no such file or directory
I don't get it. How can a file just diappear like that??



 
Old 09-05-2004, 11:27 AM   #7
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally posted by elsheikhmh
well,
try
1. chown, or
2. copy the root's .Xauthority to your home, or
3. delete it entirely, believe me, it may work without it !!

mustafa
I already tried #'s 2& 3 will try #1 but I have doubts. Changing ownership of something that doesn't exist?

I just thought of another option :
4. Throw the bloody thing out the window

 
Old 09-05-2004, 11:37 AM   #8
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
give a try

as a root,
# cp /root/.Xauthority /home/joe/.Xauthority

mustafa
 
Old 09-05-2004, 11:41 AM   #9
nalg0rath
Member
 
Registered: Feb 2004
Location: Stockholm, Sweden.
Distribution: Gentoo Linux
Posts: 30

Rep: Reputation: 15
So, what happends when you try to copy the file from the the root user's home directory?
 
Old 09-05-2004, 11:55 AM   #10
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally posted by nalg0rath
So, what happends when you try to copy the file from the the root user's home directory?
Same result, same errors

 
Old 09-05-2004, 12:24 PM   #11
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
Quote:
Originally posted by joe83
no such file or directory
I don't get it. How can a file just diappear like that??
how about:
ls -l /home
and
ls -l /home/joe

Last edited by kodon; 09-05-2004 at 12:26 PM.
 
Old 09-05-2004, 01:13 PM   #12
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Question

Copied the file .Xauthority from root to /home /joe
did chown joe:users /home/joe/.Xauthority
ls -l /home/joe/.Xauthority outputs :
-rw----- 1 joe users 53 Sept5 10:05 /home/joe/.Xauthority
startx gives same results as before
xinit starts x, takes me to the basic x manager
Any ideas??

 
Old 09-06-2004, 05:41 AM   #13
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
xinit then, startkde

mustafa
 
Old 09-06-2004, 05:46 AM   #14
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
well, i tried this:
(as a normal user)
Code:
~$ rm .Xauthority
~$ xauth -b
xauth> exit
~$ startx
xauth with -b flag will try to break locks (caused by another xauth) on the authority file
"exit" on the xauth shell will save & exit. u don't need any other operations at xauth shell.

plz, give a try and post ur feedback. this will benifit us too much.

mustafa
 
Old 09-06-2004, 09:17 AM   #15
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Original Poster
Rep: Reputation: 30
Angry

Tried it, same error as originally. I added a user and X works fine.So for now I'm going to transfer my files there so I can use the machine for work tomorrow and keep trying to find out what the problem is and (more importantly to me anyway) what caused it. Thanks to all who have helped. Will post if I find anything.


 
  


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
cdparanoia works as root but not as user arubin Linux - Software 8 11-21-2004 03:37 PM
X won't start as user, works as root... gsk Linux - General 19 10-06-2004 02:25 AM
Sound works as root but not as user? n0x Linux - Hardware 2 09-11-2004 08:27 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
DSL only works for root user reclusivemonkey Slackware 0 01-11-2004 07:03 AM


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