Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 1995 00:18:01 -0400
From:      "matthew c. mead" <mmead@goof.com>
To:        Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
Cc:        joerg_wunsch@uriah.heep.sax.de, freebsd-current@freefall.cdrom.com
Subject:   Re: should su retain ${DISPLAY}
Message-ID:  <199504100418.AAA02583@goof.com>
In-Reply-To: Your message of Sat, April  8, 1995 19:36:36 %2B0200
References:  <199504081344.PAA00343@uriah.heep.sax.de> <199504081736.TAA10286@gilberto.physik.rwth-aachen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, April  8, 1995 at 19:36:36 (+0200), Christoph Kukulies wrote:

 > > What do people think about an extension to the su(1) command that
 > > retains the ${DISPLAY} variable even across an ``su -''?

 > Excuse my ignorance: What does su - do? I don't see it documented. It looks
 > like it executes roots dotfiles.  I also see $DISPLAY preserved during a
 > normal 'su'.

 > When you su to root from a normal user you can't connect to the server (0:0)
 > anyway (unless you have enabled access before - xhost +). 

	An easy way to fix that is to set your environment variable
XAUTHORITY to ~/.Xauthority - then root will use that .Xauthority file as
well, and it won't have any problems displaying...

 > > Seen on IRIX, think it's nice to have it.

 > > Never trust an operating system you don't have sources for. ;-)

	Total agreement here!

-matt

-- 
Matthew C. Mead  -> Virginia Tech Center for Transportation Research -
                 -> Multiple Platform System and Network Administration
Work Related     -> mmead@ctr.vt.edu    |     mmead@goof.com <-     All Other
---- -------            WWW -> http://www.goof.com/~mmead           --- -----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504100418.AAA02583>