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”
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
Tagged:
0