Difference between revisions of "GETUID()"

From Lianjapedia
Jump to: navigation, search
(Purpose)
(Description)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
  
 
==Description==
 
==Description==
The GETUID() function returns the user number as a decimal value.
+
The GETUID() function returns the current Linux user number as a decimal value.
 +
 
 +
Note: this refers to the OS user account on Linux, not the Lianja [[Users and Roles]].
  
 
==Example==
 
==Example==

Latest revision as of 12:17, 17 December 2021

Purpose

Function to get Linux user identity

Syntax

GETUID()

See Also

ACCESS(), GETENV(), GETGID(), GETGRNAM(), GETPID(), PUTENV(), STR()

Description

The GETUID() function returns the current Linux user number as a decimal value.

Note: this refers to the OS user account on Linux, not the Lianja Users and Roles.

Example

if getuid() > 100 and getuid() < 200
//...
endif