Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!drears@ARDEC.arpa
From: drears@ARDEC.arpa (FSAC)
Newsgroups: comp.unix.questions
Subject: execing a shell & .profile
Message-ID: <8528@brl-adm.ARPA>
Date: Tue, 28-Jul-87 13:49:40 EDT
Article-I.D.: brl-adm.8528
Posted: Tue Jul 28 13:49:40 1987
Date-Received: Thu, 30-Jul-87 00:49:12 EDT
Sender: news@brl-adm.ARPA
Lines: 15


   At our site we are running Ultrik 2.0 on a vax 8600.  We have
created several group accounts that people (if they are in the right
group) access through a setuid program that has the same name as the
group account.
   The program sets up a environment for them and then execs /bin/sh.
The person is then placed in that group account.  What I would like to
do is have the shell execute the .profile and possibly /etc/profile.
Is there any way I can tell /bin/sh to execute .profile or
/etc/profile?  I know I can have the user type . .profile but I do not
want this.

Dennis

P.S.   /bin/sh is actually an old version of the BRL shell.