ProvideX V8.20 > Language Reference > 2. Directives
66
DEF GID/UID Directives
       Define Group/User ID
Formats
1. Define Group ID: DEF GID= groupID | groupname$ [,ERR=stmtref]
2. Define User ID: DEF UID= userID | username$ [,ERR=stmtref]
Where:
groupID
Numeric UNIX/Linux group ID number
groupname$ UNIX/Linux group name.
userID
Numeric UNIX/Linux user ID number
username$
UNIX/Linux user name.
stmtref
Program line number or label to transfer control to.
Description
These directives allow you to override the effective UNIX/Linux user or group ID of
a session, if OS security allows it. If the value is *, the system reverts back to the
original effective user or group ID.
Note: Whether or not you can switch to a different user is governed by the operating
system. If the OS does not allow the change, an error will be returned.