Ubuntu sudo not working

Posted by Ron Sebastian on Ask Ubuntu See other posts from Ask Ubuntu or by Ron Sebastian
Published on 2013-05-24T07:35:45Z Indexed on 2013/10/25 10:13 UTC
Read the original article Hit count: 379

Filed under:
|

I wanted to move a file to a /usr/python2.7/ but i was unable to do so, so i changed the permissions of /usr to myuser:

sudo chown -R ***** /usr

it worked but i realised it was a blunder when sudo stopped working after that. It says:

sudo: effective uid is not 0, is sudo installed setuid root?

I have seen this post where the accepted solution was to use the policykit:

pkexec chown root:root /usr/bin/sudo
pkexec chmod 4755 /usr/bin/sudo

however, even the policykit is saying that:

pkexec must be setuid root

please help, i've learned a lesson and will never change permissions for /usr again. Please help me this time!

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about root