Prototype: userexists(user)
Return type: boolean
Description: Return whether user
name or numerical id exists on this host.
Checks whether the user is in the password database for the current host. The argument must be a user name or user id.
Arguments:
user
: string
- User name or identifier - in the range: .*
Example:
code
body common control
{
bundlesequence => { "example" };
}
bundle agent example
{
classes:
"ok" expression => userexists("root");
reports:
ok::
"Root exists";
!ok::
"Root does not exist";
}
Output:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4