16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Options<br />

Localization<br />

Usage notes<br />

Exit Values<br />

On systems where the supplementary group list also contains the new effective<br />

group ID or where the previous effective group ID was actually in the<br />

supplementary group list:<br />

v If the supplementary group list also contains the new effective group ID, newgrp<br />

changes the effective group ID.<br />

v If the supplementary group list does not contain the new effective group ID,<br />

newgrp adds it to the list (if there is room).<br />

On systems where the supplementary group list does not normally contain the<br />

effective group ID or where the old effective group ID was not in the supplementary<br />

group list:<br />

v If the supplementary group list contains the new effective group ID, newgrp<br />

removes it from the list.<br />

v If the supplementary group list does not contain the old effective group ID,<br />

newgrp adds it to the list (if there is room).<br />

newgrp in the tcsh shell<br />

newgrp in the tcsh shell, as in the z/<strong>OS</strong> shell, allows you to change to a new<br />

group.<br />

–l Starts the new shell session as a login session. This implies that it can run<br />

any shell profile code.<br />

– Is the obsolescent version of –l.<br />

newgrp uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

newgrp is not supported from an address space running multiple processes<br />

because it would cause all processes in the address space to have their security<br />

environment changed unexpectedly. If you are using the OMVS interface, you must<br />

be using the N<strong>OS</strong>HAREAS parameter before you issue the newgrp command.<br />

Also, if you are running in an environment with the _BPX_SHAREAS environment<br />

variable set to YES, you must unset it and start a new shell before issuing newgrp.<br />

For example:<br />

unset _BPX_SHAREAS; sh<br />

newgrp<br />

If newgrp succeeds, its exit status is that of the shell. Otherwise, the exit status is:<br />

>0 Failure because newgrp could not obtain the proper user or group<br />

information or because it could not run the shell, and it ends the current<br />

shell.<br />

Chapter 2. Shell command descriptions 451

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!