home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sys5.r4:495 comp.unix.admin:6144 comp.unix.shell:4649
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!uum1!ncrtimes!ncrstp!ncrlnk!ciss!cdgate!cont1!mdonaghy
- From: mdonaghy@cont1.Dayton.NCR.COM (Matt Donaghy)
- Newsgroups: att.unix.svr4,comp.unix.sys5.r4,comp.unix.admin,comp.unix.shell
- Subject: newgrp command
- Keywords: newgrp
- Message-ID: <682@cont1.Dayton.NCR.COM>
- Date: 11 Nov 92 20:10:19 GMT
- Reply-To: donaghym@cdsmtp.Dayton.NCR.COM (Matt Donaghy)
- Distribution: usa
- Organization: NCR Controller's Division, Dayton, Ohio
- Lines: 41
-
- I know this can be accomplished but I'm not sure how to approach it. I am
- running AT&T UNIX SRV4 Release 1.03. I need to be able to change the
- effective group id of a user before they enter an application through a menu.
- I am attempting to do this using the "newgrp" command in a script. But, the
- newgrp command replaces the current shell with a new shell. So, when the
- shell that runs the "newgrp" command fails it dumps them out to the prompt.
-
- Does anyone have any ways around this? I think you might be able to do
- something with the c shell but I'm not sure. Does anyone know of a couple of
- quick lines in a script that would work?
-
- Any help or suggestions are appreciated.
-
- =============================================================================
- Matthew Donaghy, Technical Consultant
- NCR Corporation, Corporate Controller's Division ISS
- Dayton, OH Phone: (513)445-2775 Email: donaghym@cdsmtp.daytonoh.ncr.com
- Sender: donaghym@cdsmtp.daytonoh.ncr.com
- Reply-To: donaghym@cdsmtp.Dayton.NCR.COM (Matt Donaghy)
- Followup-To:
- Distribution: usa
- Organization: NCR Controller's Division, Dayton, Ohio
- Keywords: newgrp
-
- I know this can be accomplished but I'm not sure how to approach it. I am
- running AT&T UNIX SRV4 Release 1.03. I need to be able to change the
- effective group id of a user before they enter an application through a menu.
- I am attempting to do this using the "newgrp" command in a script. But, the
- newgrp command replaces the current shell with a new shell. So, when the
- shell that runs the "newgrp" command fails it dumps them out to the prompt.
-
- Does anyone have any ways around this? I think you might be able to do
- something with the c shell but I'm not sure. Does anyone know of a couple of
- quick lines in a script that would work?
-
- Any help or suggestions are appreciated.
-
- =============================================================================
- Matthew Donaghy, Technical Consultant
- NCR Corporation, Corporate Controller's Division ISS
- Dayton, OH Phone: (513)445-2775 Email: donaghym@cdsmtp.daytonoh.ncr.com
-