Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Access DISPLAY after 'su -'

 
   Soft32 Home -> Linux2 Arch -> X Window System RSS
Next:  X window don't start after instalation of dri!  
Author Message
* Tong *

External


Since: Oct 17, 2003
Posts: 47



(Msg. 1) Posted: Fri Jul 02, 2004 9:11 pm
Post subject: Access DISPLAY after 'su -'
Archived from groups: comp>os>linux>x (more info?)

Hi,

I've been able to use the same DISPLAY ':0.0' for myself and after I su as
root. I don't know how I did it, but it did work until RedHat 9
(XFree86-4.3.0-2.90.43).

But now, I'm in Debian testing (X is xfree86 4.3.0.dfsg.1-1), and I can't
use DISPLAY ':0.0' any more after I su as root.

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

How can I fix it?

I found one option after googling, but it is "use ssh" -- I don't like
it:

- it's a overkill
- allowing root to ssh in is not suggested

So, can anybody help?

Thanks

--
Tong (remove underscore(s) to reply)
*niX Power Tools Project: http://xpt.sourceforge.net/
- All free contribution & collection
Back to top
Login to vote
Kip Rugger

External


Since: Mar 22, 2004
Posts: 45



(Msg. 2) Posted: Fri Jul 02, 2004 9:11 pm
Post subject: Re: Access DISPLAY after 'su -' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

* Tong * wrote:
>Hi,
>
>I've been able to use the same DISPLAY ':0.0' for myself and after I su as
>root. I don't know how I did it, but it did work until RedHat 9
>(XFree86-4.3.0-2.90.43).
>
>But now, I'm in Debian testing (X is xfree86 4.3.0.dfsg.1-1), and I can't
>use DISPLAY ':0.0' any more after I su as root.
>
>Xlib: connection to ":0.0" refused by server
>Xlib: No protocol specified
>
>How can I fix it?
>
>I found one option after googling, but it is "use ssh" -- I don't like
>it:
>
>- it's a overkill
>- allowing root to ssh in is not suggested
>
>So, can anybody help?
>
>Thanks

Maybe "export XAUTHORITY=$USER/.Xauthority" before you su, or maybe
do this in your .bashrc?
Back to top
Login to vote
* Tong *

External


Since: Oct 17, 2003
Posts: 47



(Msg. 3) Posted: Fri Jul 02, 2004 10:43 pm
Post subject: Re: Access DISPLAY after 'su -' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 02 Jul 2004 16:54:36 -0500, Kip Rugger wrote:

>>But now, I'm in Debian testing (X is xfree86 4.3.0.dfsg.1-1), and I can't
>>use DISPLAY ':0.0' any more after I su as root.
>
> Maybe "export XAUTHORITY=$USER/.Xauthority" before you su, or maybe
> do this in your .bashrc?

Well, didn't work before su, but, YES, it works after su. Thanks!


--
Tong (remove underscore(s) to reply)
*niX Power Tools Project: http://xpt.sourceforge.net/
- All free contribution & collection
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Display interuption with DVI display and XFree86 Version 4.. - Hi everybody! Here's my problem : my screen often goes black for one second, and then the normal display work properl...

Remote X Access - Hi, I have look at solutions to do remote access to my Linux Fedora 2 Server. Fedora has installed GNOME, KDE and TWM....

Can't use any display name other than :0.0 - Hey everyone. I'm relatively new to linux, but I'm an old hand (20+) years with Unix in general and I've used alot of...

Freezing display??? - Hi all, I have a problem on my Linux RH8.0, which is the ocasional freezing of the display. My computer is a..

display identifier - Suppose you have 2 different programs running on different computers - how do you tell if they are displaying on the..

Problems with display - Hi all, I have an IBM machine with Intel 845 display card and IBM E74 monitor.I tried to install Redhat Linux 8.0,..
       Soft32 Home -> Linux2 Arch -> X Window System All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA



[ Contact us | Terms of Service/Privacy Policy ]