home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!gatech!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!geoserv!rolf
- From: rolf@geoserv (Rolf Wilson)
- Newsgroups: comp.unix.shell
- Subject: doing commands with newgrp
- Message-ID: <C0K34r.EG@news.cso.uiuc.edu>
- Date: 8 Jan 93 22:14:50 GMT
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: rolf@geoserv.isgs.uiuc.edu
- Organization: University of Illinois at Urbana
- Lines: 14
-
-
- I have some users who need to run a certain program under a secondary
- group, to make sure that the files they create are accessible to the
- right people. They can use the "newgrp" command, but sometimes they
- forget. I thought of trying to track down all the files created, and
- change them, but they are not all conveniently findable. So I wanted to
- have a batch file that would do a newgrp, then run the program.
- But doing a newgrp gives you a new shell, and the rest of the batch
- file is not finished until you exit the newgrp shell. This sounds like
- a problem that has been solved a long time ago, but I have been unable
- to find it described. Is there a standard way of doing something like
- this? Please e-mail me, and I will forward answers to anyone else interested.
- --
- Rolf Wilson Illinois State Geological Survey rolf@geoserv.isgs.uiuc.edu
-