Date: Sat, 08 Apr 1995 21:00:00 -0700 From: "Jordan K. Hubbard" <jkh@freefall.cdrom.com> To: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> Cc: joerg_wunsch@uriah.heep.sax.de, freebsd-current@freefall.cdrom.com (user alias) Subject: Re: should su retain ${DISPLAY} Message-ID: <1112.797400000@freefall.cdrom.com> In-Reply-To: Your message of "Sat, 08 Apr 95 19:36:36 %2B0200." <199504081736.TAA10286@gilberto.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1112.797400000>