> ## Documentation Index
> Fetch the complete documentation index at: https://syteca.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Secondary User Authentication

> Identify individual users on shared Windows or Linux accounts by requiring secondary login credentials before Syteca starts recording their activity.

When multiple people share the same computer account (a shared Windows login, or a shared account like `root` on Linux), Syteca can't tell them apart from the account name alone. Secondary user authentication solves this by requiring each person to enter separate credentials before they're allowed to use the computer - those credentials, not the shared account name, then identify them in every recorded session.

<Warning>
  The **Enable secondary user authentication on login** and **Allow the use of one-time passwords** options cannot be used together. Neither works correctly if both checkboxes are selected. See [One-time passwords](/docs/administration/clients/parameters/one-time-passwords) for the alternative.
</Warning>

The user entering secondary credentials must have the **Access to Endpoint via Secondary Auth.** permission for the Client, granted via [Client permissions](/docs/administration/users/client-permissions). Their secondary user name then appears in brackets after the shared account name throughout the [Client Sessions list](/docs/session-monitoring/sessions-list#open-the-sessions-list) - for example, `WORK\shared-account (janet)`.

## Grant a user permission to log in

Before a user can authenticate as a secondary user on a Windows Client, or log in to the terminal on a Linux Client with secondary user authentication enabled, they need the **Access to Endpoint via Secondary Auth.** permission for that Client. This step applies the same way on both operating systems.

<Steps>
  <Step title="Open the Users page">
    Log in to the Management Tool as a user with the [administrative User Management permission](/docs/administration/users/administrative-permissions), then click **Users**.
  </Step>

  <Step title="Add or edit the user">
    [Add a new user](/docs/administration/users/users#add-a-user) or edit an existing one - either an Active Directory user or a Syteca internal user.
  </Step>

  <Step title="Open Client permissions">
    On the **Client Access** tab, click the **Edit Permissions** icon next to the required Client.

    <Tip>
      To find a specific Client quickly, enter its name (or part of it) in the Search box and click **Apply Filters**.
    </Tip>
  </Step>

  <Step title="Grant the permission">
    In the **Client Permissions** pop-up, select **Access to Endpoint via Secondary Auth.**, then click **Save**.
  </Step>

  <Step title="Save the user">
    Click **Finish** to save the changes.
  </Step>
</Steps>

<Frame caption="Granting the Access to Endpoint via Secondary Auth. permission for a Client.">
  <img src="https://mintcdn.com/syteca/0FlD-vkHsBA1azVX/images/administration/clients/parameters/secondary-auth-grant-permission.png?fit=max&auto=format&n=0FlD-vkHsBA1azVX&q=85&s=b05b9b08b219baec44ef41659ad96e59" alt="Client Permissions pop-up with Access to Endpoint via Secondary Auth. selected" width="1889" height="909" data-path="images/administration/clients/parameters/secondary-auth-grant-permission.png" />
</Frame>

## Windows Clients

<Note>
  Secondary user authentication keeps working offline (no connection to the Application Server), but only for users who have previously authenticated at least once while online. In rare cases (for example, after reinstalling a Client), a user may be unable to log in - an administrator can contact the Syteca Support team for a temporary emergency password.
</Note>

<Note>
  After a forced restart, the **EkranClient** service takes about a minute to start. Secondary user authentication doesn't work during that window.
</Note>

### Enable it

<Steps>
  <Step title="Open the Client or Client Group">
    Log in to the Management Tool as a user with the [Client Configuration Management permission](/docs/administration/users/client-permissions). Click **Clients**, then find the Client or Client group and click its name.
  </Step>

  <Step title="Enable the option">
    On the **Editing Client** (or **Editing Client Group**) page, select the **Authentication Options** tab, scroll to **Two-Factor and Secondary Authentication**, and select **Enable secondary user authentication on login**.
  </Step>

  <Step title="Customize the login message (optional)">
    Edit **Custom secondary user authentication message to be displayed to the user** to change the text shown in the login pop-up.
  </Step>

  <Step title="Exclude specific users or groups (optional)">
    * **Exclude from secondary authentication** - enter user names separated by semicolons (for example `user1;user2;user3`) to exempt them.
    * **Exclude Active Directory user groups from secondary user authentication** - enter group names in `domain_name\group_name` format, separated by semicolons, to exempt entire AD groups.
  </Step>

  <Step title="Save">
    Click **Finish**.

    <Note>
      On Windows Server 2003, the computer must be restarted after enabling or disabling this option. On other Windows versions, it takes effect immediately.
    </Note>
  </Step>
</Steps>

<Frame caption="The Two-Factor and Secondary Authentication section on a Windows Client.">
  <img src="https://mintcdn.com/syteca/0FlD-vkHsBA1azVX/images/administration/clients/parameters/secondary-auth-windows-config.png?fit=max&auto=format&n=0FlD-vkHsBA1azVX&q=85&s=45320ce460eeb05e35130c4567db8ff5" alt="Authentication Options tab with secondary user authentication settings" width="1887" height="904" data-path="images/administration/clients/parameters/secondary-auth-windows-config.png" />
</Frame>

### Log in with secondary credentials

<Steps>
  <Step title="Log in to Windows normally">
    Locally or remotely, as usual.
  </Step>

  <Step title="Enter secondary credentials">
    The Client displays a **Secondary User Authentication** window. Enter the credentials of a Syteca user with the **Access to Endpoint via Secondary Auth.** permission for this Client.
  </Step>

  <Step title="Access is granted or denied">
    The credentials are validated against the Application Server. If the permission and credentials are correct, access is granted; otherwise the user sees a message that they lack the required permission.
  </Step>

  <Step title="Recording starts under the secondary identity">
    Once logged in, the Client records the session under `<Windows account> (<secondary user name>)` in the **Activity Monitoring** page's **User Name** column.
  </Step>
</Steps>

## Linux Clients

Secondary user authentication on Linux applies when multiple people share a Terminal account (commonly `root`). The user enters additional credentials when they launch the Terminal, and the secondary user name is shown in brackets after the primary account name in the Client Sessions list.

### Enable it

<Steps>
  <Step title="Open the Client or Client Group">
    Log in to the Management Tool as a user with the [Client Configuration Management permission](/docs/administration/users/client-permissions). Click **Clients**, then find the Linux Client or Client group and click its name.
  </Step>

  <Step title="Enable the option">
    On the **Editing Client** (or **Editing Client Group**) page, select the **Authentication Options** tab, scroll to **Two-Factor and Secondary Authentication**, and select **Enable secondary user authentication on login**.
  </Step>

  <Step title="Customize the login message (optional)">
    Edit **Custom secondary user authentication message to be displayed to the user** to change the text shown at the terminal prompt.
  </Step>

  <Step title="Exclude specific users (optional)">
    * **Exclude from secondary authentication** - user names separated by semicolons.
    * **Exclude secondary user authentication for inline SSH sessions** - user names separated by semicolons, for sessions that shouldn't require secondary credentials over inline SSH.
  </Step>

  <Step title="Save">
    Click **Finish**. The setting takes effect immediately - the next time any user on that Client (or Client group) opens a Terminal, they're prompted for secondary credentials.
  </Step>
</Steps>

<Frame caption="The Two-Factor and Secondary Authentication section on a Linux Client, including the inline SSH exclusion field.">
  <img src="https://mintcdn.com/syteca/0FlD-vkHsBA1azVX/images/administration/clients/parameters/secondary-auth-linux-config.png?fit=max&auto=format&n=0FlD-vkHsBA1azVX&q=85&s=fa203529bde9c83ba332e2a4bf1efc73" alt="Authentication Options tab with Linux secondary user authentication settings" width="1884" height="1012" data-path="images/administration/clients/parameters/secondary-auth-linux-config.png" />
</Frame>

### Log in to the terminal

<Steps>
  <Step title="Open the terminal">
    The user opens the terminal on the Linux Client computer as usual.
  </Step>

  <Step title="Enter secondary credentials">
    The Client prompts for secondary user authentication credentials.
  </Step>

  <Step title="Provide a Syteca user's credentials">
    The user enters the credentials of a Syteca user with the [Access to Endpoint via Secondary Auth. permission](/docs/administration/users/client-permissions) for this Client.
  </Step>

  <Step title="Access is validated">
    The credentials are checked against the Application Server. With the right permission and correct credentials, the terminal opens; otherwise, the user sees an access-denied message.
  </Step>

  <Step title="Recording starts under the secondary identity">
    Once logged in, the Client records the session under `<Linux user> (<secondary authentication user>)` in the **Client Sessions** list's **User name** column.
  </Step>
</Steps>

## Related

<CardGroup cols={2}>
  <Card title="One-time passwords" icon="key-round" href="/docs/administration/clients/parameters/one-time-passwords">
    A mutually exclusive alternative login-identification method.
  </Card>

  <Card title="Client permissions" icon="shield" href="/docs/administration/users/client-permissions">
    The permission required to authenticate as a secondary user.
  </Card>

  <Card title="Windows Clients" icon="windows" href="/docs/administration/clients/windows">
    Windows Client installation and configuration.
  </Card>

  <Card title="Linux Clients" icon="terminal" href="/docs/administration/clients/linux">
    Linux Client installation and configuration.
  </Card>
</CardGroup>
