Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!v.wales@ucla-locus From: v.wales%ucla-locus@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Should "su" change the USER environment variable? Message-ID: <12928@sri-arpa.UUCP> Date: Mon, 24-Oct-83 14:41:24 EDT Article-I.D.: sri-arpa.12928 Posted: Mon Oct 24 14:41:24 1983 Date-Received: Thu, 27-Oct-83 09:38:18 EDT Lines: 18 From: Rich Wales The "su" command in 4.1BSD does not change the value of the USER envi- ronment variable. This seems strange, especially since "su" does change the HOME and SHELL variables to values appropriate for the new user. (1) Can anyone think of a good reason why the USER value should not be changed by "su"? (NOTE: I fully realize that no one should depend on the USER value as a reliable user identification, since anyone can change their USER value to anything at all. Hence, no flames about system secur- ity, please!) (2) Does "su" change the USER value in other versions of UNIX, such as 4.2 or System V? -- Rich Wales