Okta Advanced Server Access and Okta Privileged Access Admin Users Receive a Password Prompt When Executing Sudo Commands
Last Updated:
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.
- Open the
/etc/sudoersfile. - Verify or add the include directive for the
/etc/sudoers.ddirectory 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.
