bitburner-src/markdown/bitburner.ns.hasrootaccess.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

798 B

Home > bitburner > NS > hasRootAccess

NS.hasRootAccess() method

Returns a boolean indicating whether or not the player has root access to the specified target server.

Signature:

hasRootAccess(host: Host): boolean;

Parameters

Parameter Type Description
host Host Host or IP of the target server

Returns:

boolean

True if player has root access to the specified target server, and false otherwise.

Remarks

0.05 GB

Example

if (hasRootAccess("foodnstuff") == false) {
   nuke("foodnstuff");
}