Difference between revisions of "GETUID()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to get user identity | Function to get user identity | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ACCESS()]], [[CREATE]], [[GETENV()]], [[GETGID()]], [[GETPID()]], [[MODIFY STRUCTURE]], [[PUTENV()]] | + | [[ACCESS()]], [[CREATE]], [[GETENV()]], [[GETGID()]], [[GETGRNAM()]], [[GETPID()]], [[MODIFY STRUCTURE]], [[PUTENV()]], [[STR()]] |
Line 30: | Line 26: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Environment]] | ||
+ | [[Category:Environment Functions]] |
Latest revision as of 16:16, 2 December 2009
Purpose
Function to get user identity
Syntax
GETUID()
See Also
ACCESS(), CREATE, GETENV(), GETGID(), GETGRNAM(), GETPID(), MODIFY STRUCTURE, PUTENV(), STR()
Description
The GETUID() function returns the user number. In UNIX/Linux, this is the user number of the logged in user from the /etc/passwd file. In OpenVMS this is the user number extracted from the UIC of the logged in user from the system authorization file. The GETUID() returns a decimal value. OpenVMS user IDs are stored in octal. You may use the STR() function to convert the OpenVMS value to octal when using the GETUID() function.
Example
use accounts @2,3 get name @3,3 get rates; when getuid() > 100 and getuid() < 200 read
Products
Recital Server, Recital