From owner-freebsd-current Sun Apr 9 21:21:46 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA00183 for current-outgoing; Sun, 9 Apr 1995 21:21:46 -0700 Received: from goof.com (goof.com [198.82.204.15]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA00177 for ; Sun, 9 Apr 1995 21:21:45 -0700 Received: (from mmead@localhost) by goof.com (8.6.11/8.6.9) id AAA02583; Mon, 10 Apr 1995 00:18:01 -0400 Date: Mon, 10 Apr 1995 00:18:01 -0400 From: "matthew c. mead" Message-Id: <199504100418.AAA02583@goof.com> To: Christoph Kukulies Cc: joerg_wunsch@uriah.heep.sax.de, freebsd-current@freefall.cdrom.com Subject: Re: should su retain ${DISPLAY} In-Reply-To: Your message of Sat, April 8, 1995 19:36:36 +0200 References: <199504081344.PAA00343@uriah.heep.sax.de> <199504081736.TAA10286@gilberto.physik.rwth-aachen.de> Sender: current-owner@FreeBSD.org Precedence: bulk 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 --- -----