Score:0

sudo command is not working

cd flag

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
Artur Meinild avatar
vn flag
*"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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.