sudo: bad onwership of /usr/bin/sudo and /usr/lib/sudo/sudoers.so (2001:2501)

Bug #1915779 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Confirmed
Critical
Unassigned
Hirsute
Confirmed
Critical
Unassigned

Bug Description

After enabling the -proposed ppa in Hirsute (21.04) I'm getting the following error:

ubuntu@hirsute:~$ sudo su -
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
ubuntu@hirsute:~$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 2001 2501 190952 Feb 10 11:42 /usr/bin/sudo

I had a root session open so I could fix it by manually setting user and group ownership back to root.

After that I noticed that also /usr/lib/sudo/sudoers.so had the wrong ownership:

ubuntu@hirsute:~$ sudo su -
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins

I manually fixed also this one and now my system seems to work normally.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sudo (Ubuntu):
status: New → Confirmed
Changed in sudo (Ubuntu Hirsute):
importance: Undecided → Critical
tags: added: rls-hh-incoming
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.