Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!nisca.ircc.ohio-state.edu!hpuxa.ircc.ohio-state.edu!frank From: frank@hpuxa.ircc.ohio-state.edu (Frank G. Fiamingo) Newsgroups: comp.unix.questions Subject: Restricted Program Access Message-ID: <164@nisca.ircc.ohio-state.edu> Date: 6 Jul 89 18:29:05 GMT Sender: news@nisca.ircc.ohio-state.edu Organization: Ohio State Univ IRCC Lines: 15 I'm trying to set up a program so that is executable only by members of a certain group. This group, however, is generally NOT the group that its members login to. I thought I could set the mode to say 750 and then use newgrp. This works when typed directly in, but doesn't work in a shell script. Apparently newgrp spawns a new shell so that the commands following it are never executed. Can I work around this, or is there another way to accomplish what I want? I'm working with an HP9000/840 running HP-UX3.01 (SysVish). Thanks, Frank frank@hpuxa.ircc.ohio-state.edu