Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ulysses.UUCP Path: utzoo!linus!vaxine!wjh12!foxvax1!brunix!ulysses!smb From: smb@ulysses.UUCP (Steven Bellovin) Newsgroups: net.unix-wizards Subject: Re: Should "su" change the USER environment variable? Message-ID: <678@ulysses.UUCP> Date: Sat, 29-Oct-83 13:39:09 EST Article-I.D.: ulysses.678 Posted: Sat Oct 29 13:39:09 1983 Date-Received: Thu, 3-Nov-83 02:19:06 EST References: <12957@sri-arpa.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 8 There's a philosophical question that has to be resolved first: is the purpose of 'su' to let you "become" the other user, or is it to extend your permission while retaining your identity. If you're trying to become someone else, then USER should be changed; if not, then it should be left alone. I tend to subscribe to the second view. Back in the mists of time, when I was modifying ucbmail to work with MMDF, I used USER to generate the 'From' line, but the real uid to generate a 'Sender' line. That seemed to work out best, under the circumstances.