OCI: Add sudo root Permissions to Regular Linux User in Oracle Linux
in 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.
Tagged:
1