From owner-freebsd-hackers Mon Dec 17 0: 7:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from turtle.looksharp.net (cc360882-d.strhg1.mi.home.com [24.13.43.207]) by hub.freebsd.org (Postfix) with ESMTP id 7F12B37B426 for ; Mon, 17 Dec 2001 00:07:52 -0800 (PST) Received: by turtle.looksharp.net (Postfix, from userid 1003) id CD3CB3ECF; Mon, 17 Dec 2001 03:09:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by turtle.looksharp.net (Postfix) with ESMTP id C9D56BAA6; Mon, 17 Dec 2001 03:09:19 -0500 (EST) Date: Mon, 17 Dec 2001 03:09:19 -0500 (EST) From: "Brandon D. Valentine" To: Anthony Schneider Cc: Andreas Klemm , , Subject: Re: aps2file doesn't work on FreeBSD In-Reply-To: <20011216195054.A36208@mail.slc.edu> Message-ID: <20011217030451.V94172-100000@turtle.looksharp.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 16 Dec 2001, Anthony Schneider wrote: >Well, the reason I brought up $USER inheritance is that on linux, $USER >is root after an su to root, whereas on FreeBSD, the $USER is the same >as before the su. [Line wrap at 72, please] Excerpt from su(1): --- By default, the environment is unmodified with the exception of USER, HOME, and SHELL. HOME and SHELL are set to the target login's default values. USER is set to the target login, unless the target login has a user ID of 0, in which case it is unmodified. The invoked shell is the target login's. This is the traditional behavior of su. -l Simulate a full login. --- You are observing none other than the expected behavior. I have never seen Linux (GNU) su do things any differently in this regard. If they do, it's broken. Brandon D. Valentine -- "Iam mens praetrepidans avet vagari." - G. Valerius Catullus, Carmina, XLVI To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message