0

The file permissions of my ubuntu system got changed somehow and running any sudo command gives the following error

sudo: /etc/sudo.conf is world writable
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Couple of things I tried

  1. pkexec chmod u+s /usr/bin/sudo. Gives error error: pkexec must be setuid root
  2. I tried to enable root login as given here. But I need to set the root password next and my recovery mode does not open on holding the SHIFT key as given here
  • *"got changed somehow"* - do any people other than you have root access to the machine? If no, what command did you run to change ownership? In any case, you probably need to boot a live USB to fix things, or do a reinstall if permissions/ownership are seriously screwed. – Artur Meinild Dec 21 '22 at 12:54

0 Answers0