LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2003, 10:09 AM   #1
JCScoobyRS
Member
 
Registered: Dec 2002
Location: It's a Secret
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
Problem connecting to X Server


If I log into KDE as "username" and I open a terminal and then type "kedit filename &", kedit opens great with the document loaded. Now, I want to open a root owned file so I "su -" and then do the same thing but I get errors like:

Xlib: connection to ":0:0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
kedit: cannot connect to X server :0:0

The middle line sometimes changes. The way I get past them is to copy the .XAuthority from the home of username to the home of the user that I switched to and this workes until I close the terminal and start another one or I reboot. How can I setup my environment so I can log in as a user, switch users and still connect to the X Server to open X related apps? Thanks, Jeremy
 
Old 12-19-2003, 11:57 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
A fast, secure and reasonably straigh-forward way of
dealing with this would be to
ssh -X <user>@localhost <program>


Cheers,
Tink
 
  


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
Problem connecting SAMBA to Windows 2003 Server Micro420 Linux - Networking 5 11-08-2005 03:53 PM
fc3 problem connecting to a w2k server xmlmagician Linux - Networking 21 01-19-2005 05:24 PM
Fedora problem connecting to HP server rip Fedora 1 12-13-2004 07:47 AM
master server connecting problem sneak Linux - Games 2 12-01-2004 06:01 AM
connecting to a 2K server damfoose Linux - Networking 0 06-16-2004 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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