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

I can no longer use sudo in any of my toolboxes. What is wrong?

[niklas@fedora ~]$ sudo -i
[sudo] password for niklas: 
[root@fedora ~]# echo success
success
[root@fedora ~]# exit
logout

[niklas@fedora ~]$ toolbox --version
toolbox version 0.0.99.1
[niklas@fedora ~]$ podman --version
podman version 3.1.2
[niklas@fedora ~]$ hostnamectl | grep "Operating System"
  Operating System: Fedora 34.20210609.0 (Silverblue)

[niklas@fedora ~]$ toolbox create newtoolbox
Created container: newtoolbox
Enter with: toolbox enter newtoolbox
[niklas@fedora ~]$ toolbox enter newtoolbox
[niklas@toolbox ~]$ sudo -i
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Outside toolbox:

[niklas@fedora ~]$ ls -lh /usr/bin/sudo
---s--x--x. 4 root root 182K  1 jan  1970 /usr/bin/sudo

Inside toolbox container

[niklas@toolbox ~]$ ll -lh /usr/bin/sudo
---x--x--x. 1 root root 182K Jan 26 21:09 /usr/bin/sudo

Workaround

[niklas@fedora ~]$ podman exec --user root <your_container_name> chmod 4111 /usr/bin/sudo

Like this post if it helped you :hugs: