You are not logged in.

#1 2016-04-21 14:58:28

lviggiani
Member
Registered: 2014-02-28
Posts: 141

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Hi,
today suddenly I started having this message whenever trying to execute any command with sudo

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Fortunately I could solve the issue by logginout and logging in as root and by executing

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

and restarting.

The thing is... why it happened??? I did not install anything other than from official repos and AUR and I did not run any script or change and permissions manually.
Should I be scared of some malicious aur package, virus or anything else? Is there a way to check my system is still safe?
Thanks!

Offline

#2 2016-04-21 15:01:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

What were the permissions when it was not working?

Offline

#3 2016-04-21 15:13:53

lviggiani
Member
Registered: 2014-02-28
Posts: 141

Re: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

...I did not check the permission, but the owner when not working was luca:root (luca is my account)

Offline

#4 2016-05-04 12:48:11

jobach
Member
Registered: 2015-09-28
Posts: 5

Re: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Something like

$ journalctl | egrep 'chown|chmod'

might be worth a try, since commands e .g. sudo log the commands that have been executed. Maybe something comes up.

Offline

Board footer

Powered by FluxBB