Should "su" change the USER environment variable?

Michael S. Maiten msm at syteka.UUCP
Thu Nov 3 06:06:55 AEST 1983


One technique that I use when I need different access permissions is to have
a setuid/setgid shell file which, after checking the real userid against
an access list, will exec a program which sets the real uid/gid to the 
effective uid/gid and execs its argument.  Using csh, this means that I can 
have multiple jobs running shells, each with different access permissions
(Of course, the setuid/gid shells must be set up in advance).
I can then just move between them as needed.  This method saves typing
in passwords (as with su) and having .logins, etc executed.


					Michael S. Maiten
					Silicon Gulch, California
					<...!{ucbvax!menlo70,decvax}!sytek!msm>



More information about the Comp.unix.wizards mailing list