z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


setegid

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-setegid--gid------------------------------------------------><

Function

setegid invokes the setegid callable service to set the effective group ID (GID) of the calling process.

Parameters

gid
The numeric GID that the calling process is to assume.

Usage notes

  1. If gid is equal to the real group ID or the saved set group ID of the process, the effective group ID is set to gid.
  2. If gid is not the same as the real group ID, and the calling process has the appropriate privileges, the effective group ID is set to gid.
  3. The setegid service does not change any supplementary group IDs of the calling process.

Example

In the following example, assume that gid was assigned a value earlier in the exec:
"setegid" gid

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014