home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5319 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.3 KB

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