OCI: sudo Dails in Ubuntu Instance with "sudo: /etc/sudo.conf is owned by uid 1001, should be 0” — Cloud Customer Connect
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
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: sudo Dails in Ubuntu Instance with "sudo: /etc/sudo.conf is owned by uid 1001, should be 0”

edited Jul 21, 2025 2:12PM in Linux

APPLIES TO:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64

SYMPTOMS
Unable to run sudo using ubuntu user in OCI ubuntu instance

ubuntu@<HOSTNAME>:~$ sudo su -
sudo: /etc/sudo.conf is owned by uid 1001, should be 0
sudo: /etc/sudo.conf is owned by uid 1001, should be 0
sudo: /etc/sudoers is owned by uid 1001, should be 0
sudo: error initializing audit plugin sudoers_audit
ubuntu@<HOSTNAME>:~$

CAUSE
Incorrect ownership of sudo configuration files

root@<HOSTNAME>~# ls -ld /etc/sudoers
-r--r----- 1 ubuntu ubuntu 1800 Jan 29 2024 /etc/sudoers
root@x<HOSTNAME>~# ls -ld /etc/sudo.conf
-rw-r--r-- 1 ubuntu ubuntu 4343 Apr 8 2024 /etc/sudo.conf

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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