You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Add sudo root Permissions to Regular Linux User in Oracle Linux

Applies to

Oracle Cloud Infrastructure - Version N/A and later

Oracle Linux x86-64

 

Goal

There is a need for an additional regular user (testuser in this example) to be able to sudo to the root user, in a Oracle Linux OCI instance based on a standard Oracle Linux Platform image.

In simpler terms, there is a need for a separate user to use sudo just like the default opc user.

 

Solution

The below solution uses the existing sudoers configuration file for the opc user as a “template”, creates a copy of that file and modifies the new file to apply to the new user.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!