You can put it in the user's default .cshrc file.  It would then be done
everytime
the user logs in.    HOWEVER, .cshrc files only get used by /bin/csh and
/bin/tcsh
shells... Unfortunately, I'm not a bash aficionado, so I can't tell you
where to
put it there, unless you want to try it in your .login

Bill Ward

-----Original Message-----
From: Charles Galpin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 29, 1999 9:31 PM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown; @nswcphdn.navy.mil
Subject: Re: Can't open window as root


this came up recently, and i asked if anyone knew how to set this up so
that the user who started X didn't have to do this manually every time.

Someone sugested sticking it in one of the X startup files (don't remember
where now), but it was a while till I rebooted/restarted X to find that it
did not indeed work.

Can anyone provide the answer? I get annoyed by this one :)

charles

On Wed, 29 Dec 1999, Steve Borho wrote:

> On Wed, Dec 29, 1999 at 02:41:47PM -0800, Todd A. Jacobs wrote:
> > In a terminal window, I've su'd to root, exported by DISPLAY variable,
but
> > I still get the following error:
> > 
> >     Xlib: connection to ":0.0" refused by server
> >     Xlib: Client is not authorized to connect to Server
> 
> in another X term (running as the same user that started X), run
> xhost +localhost


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to