<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language

Okta Advanced Server Access and Okta Privileged Access Admin Users Receive a Password Prompt When Executing Sudo Commands

Advanced Server Access

Overview

Okta Advanced Server Access (ASA) and Okta Privileged Access (OPA) server admin users or users with valid entitlements receive a password prompt when attempting to execute sudo commands. This issue occurs when the /etc/sudoers file lacks the include directive for the /etc/sudoers.d directory. Resolve this issue by adding the include directive to the /etc/sudoers file.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Okta Advanced Server Access (ASA)
  • Okta Privileged Access (OPA)

Cause

The Okta Advanced Server Access or Okta Privileged Access server agent creates sudo related configurations in the /etc/sudoers.d directory. If the /etc/sudoers file lacks the include directive for this directory, users receive a password prompt.

Solution

How is the password prompt for sudo commands resolved?

Add the include directive to the configuration file by following these steps.

  1. Open the /etc/sudoers file.
  2. Verify or add the include directive for the /etc/sudoers.d directory as shown in the following code snippet:
#includedir /etc/sudoers.d

If this is already in place, check the versions of all components (for example, the client, gateway, and server). If any component is out of date, upgrade it to the latest.

Loading
Okta Advanced Server Access and Okta Privileged Access Admin Users Receive a Password Prompt When Executing Sudo Commands | Okta Support