On Mon, Jun 11, 2012 at 11:34 PM, David Korn <[email protected]> wrote:
> cc:  [email protected]  [email protected]
> Subject: Re: Re: [ast-developers] Usage difference between newgrp and 
> /usr/bin/newgrp?
> --------
>
>
>> Erm... note: You still have to call the external /usr/bin/newgrp
>> because it must be a setuid "root" binary to handle groups which are
>> normally not part of the users Unix credentials but are accessible
>> using group passwords (such password-protected groups are often used
>> on universities).
>> AFAIK it might be sufficient to execute it like a normal shell command
>> and not |exec()| it to replace the current shell process.
>>
>
> If you don't exec it, a new process is created.  That is not the
> traditional behavior of newgrp which replaces the process with a new
> one.

OK, so that explains the difference. AFAIK no action is then required
in this case. Thanks for the explanation.

Irek

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to