A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.cfengine.com/latest/reference-functions-userexists.html below:

userexists - CFEngine 3.26 Docs

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:

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