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


setgid

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

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

Function

setgid invokes the setgid callable service to set the real, effective, and saved set group IDs (GIDs) for 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, then the real, saved set, and effective group IDs are set to gid.
  3. The setgid 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:
"setgid (gid)"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014