tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tom Linden <tom () kednos ! com>
To: tru64-unix-managers
Subject: SUMMARY: Xlib: connection to ":0.0" refused by server (fwd)
Date: Thu, 07 Jan 1999 22:02:47 +0000	[thread overview]
Message-ID: <96079034715438.tru64-unix-managers.marc@archive.invalid> (raw)

It's a good thing that i misspelled SUMMARY the first time.

After reading the many responses I've include those the helped me the most.
In the end, I put into my .bash_profile the following

export XAUTHORITY=~tom/.Xauthority

and problem is solved, without security risks.

Thanks to all

From: "Serguei Patchkovskii" <patchkov@ucalgary.ca>

> all I needed to do was to 
> thor/tom 262 > xhost +localhost
> localhost being added to access control list
> thor/tom 263 > su
> 
> before su.

No, this is not the right solution. If you do this any users
with a valid login on your machine will be able to snoop on
your root sessions (and even take them over if they so wish).

*After* doing su, copy the .Xauthority file from your home 
directory to /

Regards,

/Serge.P

From: "Kevin Oberman" <oberman@es.net>

setenv XAUTHORITY ~your-login-name/.Xauthority
or the functional equivalent for whatever shell you use. Your logon
account ownes the display and root does not.

R. Kevin Oberman, Network Engineer

> From: Tom Linden <tom@kednos.com>
> 
> do you mean that I have to do this every time I want to su?

Yes. I can pretty much type it in my sleep.

This is the only secure way to do the job. The alternative is to
xhost +localhost, but that is a potential security problem if the
system is multi-user. 

Tk refuses to allow IPC on systems with a non-empty xhosts list for
security reasons, so it also will break some applications written in
Tcl/Tk including exmh. (exmh is the one that made me aware of the
problem.)

R. Kevin Oberman, Network Engineer

                 reply	other threads:[~1999-01-07 22:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox