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: sudo: /etc/<sudo file> is owned by uid 1000, should be 0

edited May 9, 2025 9:19AM in Linux

NOTE: Please register a free account to access the full content and also to participate in Q&A in the community

Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64 on Oracle Public Cloud

Symptoms:
Unable to run sudo

[opc@instance]$ sudo su
sudo: /etc/sudo.conf is owned by uid 1000, should be 0
sudo: /etc/sudo.conf is owned by uid 1000, should be 0
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_audit

Cause:

The issue is caused when the permissions of sudo related files changed. In this example

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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