Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!seismo!hao!hplabs!sytek!syteka!msm From: msm@syteka.UUCP (Michael S. Maiten) Newsgroups: net.unix-wizards Subject: Re: Should "su" change the USER environment variable? Message-ID: <392@syteka.UUCP> Date: Wed, 2-Nov-83 15:06:55 EST Article-I.D.: syteka.392 Posted: Wed Nov 2 15:06:55 1983 Date-Received: Sun, 6-Nov-83 18:40:31 EST References: utah-gr.969 Lines: 13 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>