Deploy the Tanium Client to Solaris endpoints using a package file

On Solaris endpoints, the Tanium Client is installed as a system service. The Tanium Client files are installed by default in the /opt/Tanium/TaniumClient directory.

Tip: If your environment requires a different installation location for applications, you can create a symbolic link during installation.

The following procedures describe how to use the endpoint CLI to install the Tanium Client. For more information about using the CLI, see CLI on non-Windows endpoints.

For information about managing the Tanium Client service or uninstalling the Tanium Client after deployment, see Manage the Tanium Client on Solaris.

Prepare for installation

  1. Ensure that the endpoint meets the basic requirements for the Tanium Client on Solaris.
  2. Ensure that host and network firewalls are configured to allow inbound and outbound TCP traffic on the ports that the Tanium Client uses. For more information, see Network connectivity, ports, and firewalls.
  3. (Solaris 11.4 only) Install the legacy pkgadd utilities:
    1. Access the endpoint CLI.
    2. Find the pkgadd IPS package name:
      CODE
      pkg search pkgadd
      CODE
      INDEX       ACTION VALUE       PACKAGE
      basename   file                     usr/sbin/pkgadd pkg:/package/svr4@11.4-11.4.6.0.1.4.0
    3. Install the pkgadd utilities:
      CODE
      pkg install pkg:/package/svr4@11.4-11.4.6.0.1.4.0
  4. (Solaris 10 or 11.0–11.3 only) Install the SUNWgccruntime package if it is not yet installed.
    Note: Although this package is part of a default Solaris installation, some organizations omit it in their standard image.
    1. Determine whether the package is installed:
      CODE
      pkginfo -l SUNWgccruntime

      The following example output indicates the package is installed:

      CODE
      PKGINST:  SUNWgccruntime
      NAME:  GCC Runtime libraries
      CATEGORY:  system
      ARCH:  sparc
      VERSION:  11.11.0,REV=2010.05.25.01.00
      BASEDIR:  /
      VENDOR:  Oracle Corporation
      DESC:  GCC Runtime - Shared libraries used by gcc and other gnu components
      INSTDATE:  Dec 01 2015 11:43
      HOTLINE:  Please contact your local service provider
      STATUS:  completely installed
    2. If the SUNWgccruntime package is not yet installed, run one of the following commands:
      • Solaris 10 or 11.0–11.3 (without using Image Packing System [IPS]):

        # pkgadd -d /path/to/SUNWGccruntime.pkg SUNWgccruntime

      • Solaris 11.0–11.3 using IPS:

        # pkg install SUNWgccruntime

  5. Sign in to the target endpoint.
  6. Use the Tanium Client Management service to download the Client installer bundle to the Solaris endpoint. From the Client Management Overview page, click Download Installers > Download Solaris Package.

    The bundle (solaris-client-bundle.zip) contains the following files:

    • install.sh
    • TaniumClient-<version>-SunOS-5.10.i386.pkg.tar.gz
    • TaniumClient-<version>-SunOS-5.10.sparc.pkg.tar.gz
  7. Download the tanium-init.dat file from a Client Deployment Template in the Tanium Client Management service:
    1. From the Main menu, go to Shared Services > Client Management.

    2. Go to Client Installations > Client Deployment Templates.

    3. In the row for a template, click Actions options2 and select Download tanium-init.dat.

    4. Deploy Tanium Client using the appropriate installer or package file and the tanium-init.dat file you downloaded. For more information, see Deploying the Tanium Client using an installer or package file.

    Tip: You must create a Client Deployment Template in Client Management before performing this step. For more information, see (Optional) Create a Client deployment template.
    Note: Download the tanium‑init.dat file for a Client Deployment Template in Client Management. Though you can also download tanium‑init.dat through Tanium Console without creating a Client Deployment Template (see Download infrastructure configuration files (keys)), the installation process requires fewer manual configuration steps if you use these steps.
    Important:

    Be careful not to allow the tanium-init.dat file to be distributed or stored outside of your organization, such as in a publicly accessible source code repository or any other location accessible from the public internet. Limit the distribution to specific use in the deployment of Tanium Clients.

    Though this file does not contain private keys and cannot be used to provide control over a Tanium environment, a user with malicious intent could use it to connect an unapproved Client and use this unauthorized access to learn how your organization is using Tanium.

  8. Extract the files from the bundle, and copy the package files, tanium-init.dat, and, optionally, install.sh to a temporary directory on the endpoint. Make sure to keep the tanium‑init.dat file in the same directory as the package files.

Install the Tanium Client on Solaris using the command line

Tip: The install.sh file provides an example of a script that performs an installation of the Tanium Client. By default, the script checks for a supported version of Solaris, installs the appropriate Tanium Client package, and copies the tanium‑init.dat file. You can modify this script with CLI commands that configure the Tanium Client settings that are necessary for your environment. You can then use the modified script for automated deployment of the Tanium Client. To run the install.sh script, you must have root or sudo permissions.
  1. (Optional) To use a directory other than the default for the Client installation, create a symbolic link, and set the PKG_NONABI_SYMLINKS environment variable to true. For example, to use the directory /appbin/Tanium, run the following commands:
    CODE
    ln -s /appbin/Tanium /opt/Tanium
    PKG_NONABI_SYMLINKS=true
    export PKG_NONABI_SYMLINKS
    Important: You must install the Tanium Client on a local fixed drive.
  2. Run the following command from the temporary directory to install the package and generate a default configuration file:
    CODE
    sudo pkgadd -d ./TaniumClient‑<client_version>‑SunOS‑5.10‑<platform>.pkg TaniumClient

    Note: If you are signed into the Global Zone and want to install only in the current zone, specify the ‑G flag. If you have questions, consult your system administrator for proper zone behavior.

  3. (For tanium-init.dat files that do not include Client settings) Use the CLI (see CLI on non-Windows endpoints) to configure the following basic Tanium Client settings.
    Note: The Resolver Client setting is not included in the tanium-init.dat file by default. You must either create a separate Client Configuration for Solaris that includes the custom Client setting Resolver=nslookup or manually set Resolver=nslookup using the CLI.

    ServerName or ServerNameList

    In a deployment with a standalone Tanium Server, set the ServerName to the Server FQDN or IP address. In a deployment with Tanium Zone Servers or multiple Tanium Servers, configure ServerNameList with the FQDN or IP address of each Server, separated with a comma.

    Important: If the tanium‑init.dat file specifies ServerNameList, you do not need to configure ServerName or ServerNameList; any setting that you specify here is added to the ServerNameList specified in tanium-init.dat. By default, the tanium‑init.dat that you download through the Client Management service specifies ServerNameList, while the tanium‑init.dat that you download through Tanium Console does not. You can use the TaniumClient pki show <path_to_tanium-init.dat> command on an endpoint where Tanium Client is already installed to view the ServerNameList that the tanium-init.dat file specifies.
    Note: If the tanium-init.dat file does not include the ServerNameList, specify FQDNs for this setting.
    Tip: You can optionally set the port that the Tanium Client uses to communicate with Servers by appending :<port_number> to the Server IP addresses or FQDNs (for example, ts1.local.com:443,ts2.local.com:443,zs1.example.com:443). The ServerNameList port values override the ServerPort setting for the Tanium Client (default is 17472).

    ServerPort

    The port that the Tanium Client uses for communication with the Tanium Server and with peers. The default port is 17472. For more information, see ServerPort.

    LogVerbosityLevel

    The level of logging on the endpoint. The following values are best practices for specific scenarios:

    • 1 (default): Use this value during normal operation.

    • 41: Use this value during troubleshooting.

    • 91 or higher: Use this value for full logging, for short periods of time only.

    Note:

    A value of 0 disables logging. As a best practice, do not disable logging.

    Resolver

    Add the Resolver=nslookup setting to enable host name resolution.

    Note: For information about configuring additional settings, see Modify Client settings and Tanium Client settings reference.

    The following example commands are for a deployment with multiple Tanium Servers and Zone Servers:

    CODE
    cd <Tanium Client installation directory>
    sudo ./TaniumClient config set ServerNameList \
    ts1.example.com,ts2.example.com,zs1.example.com,zs2.example.com
    sudo ./TaniumClient config set LogVerbosityLevel 1
    sudo ./TaniumClient config set Resolver nslookup
  4. Copy the tanium‑init.dat file from the Tanium Server to the Tanium Client installation directory on the Solaris endpoint.
  5. Run the following command to start the Tanium Client service:
    CODE
    svcadm enable taniumclient
  6. Wait a few minutes for the Tanium Client to register with the Tanium Server or Zone Server, and then verify that the Client installed correctly and is communicating properly. For more information, see Verify the Tanium Client installation.

Perform unattended Tanium Client installation

By default, the pkgadd utility performs a manual installation. The utility prompts for user intervention when it encounters operations that might be a security issue or conflict, such as running scripts with SUID, creating directories, or changing permissions. The utility provides a method to bypass these interventions and perform or abandon the installation. You accomplish this with a tanium.admin file, which contains operator identifiers and specifies what to do when the utility encounters security issues or conflicts.

  1. Create the tanium.admin file with the following contents:
    CODE
    mail=
    instance=overwrite
    partial=nocheck
    runlevel=nocheck
    idepend=nocheck
    rdepend=nocheck
    space=nocheck
    setuid=nocheck
    conflict=nocheck
    action=nocheck
    networktimeout=60
    networkretries=3
    authentication=quit
    keystore=/var/sadm/security
    proxy=
    basedir=default
  2. Run pkgadd with the ‑a option:
    CODE
    pkgadd ‑a tanium.admin ‑d ./TaniumClient‑<client_version>‑SunOS‑5.10‑<platform>.pkg TaniumClient

Configure the Tanium Client on Solaris

The Tanium Client binary has statically linked libraries. All the libraries are in the standard default location (/lib) except libstdc++ and gcc. These two libraries are assumed to be in /usr/sfw/lib. If they are not, the Client does not start. If libstdc++ and gcc are not in /usr/sfw/lib, you must add the library search path to the Service Management Facility (SMF) taniumclient service:

  1. Find the directory location of libgcc.* and libstdc++.*.
  2. Run the following command to add the search path to the SMF service:

    svccfg -s application/taniumclient setenv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib