From owner-freebsd-current Sat Apr 8 21:00:02 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA01120 for current-outgoing; Sat, 8 Apr 1995 21:00:02 -0700 Received: from localhost (localhost [127.0.0.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA01113 ; Sat, 8 Apr 1995 21:00:00 -0700 X-Authentication-Warning: freefall.cdrom.com: Host localhost didn't use HELO protocol To: Christoph Kukulies cc: joerg_wunsch@uriah.heep.sax.de, freebsd-current@freefall.cdrom.com (user alias) Subject: Re: should su retain ${DISPLAY} In-reply-to: Your message of "Sat, 08 Apr 95 19:36:36 +0200." <199504081736.TAA10286@gilberto.physik.rwth-aachen.de> Date: Sat, 08 Apr 1995 21:00:00 -0700 Message-ID: <1112.797400000@freefall.cdrom.com> From: "Jordan K. Hubbard" Sender: current-owner@FreeBSD.org Precedence: bulk > 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'. It executes the dotfiles for whichever user you're su'ing to. I think of `su -' as "su, but flush my current environment totally and adopt that of the user I'm su'ing to." It is therefore arguable that not preserving DISPLAY in these cases is, in fact, the right thing to do. Jordan