I get the following error when trying to use any sudo command inside my toolbox. Issue began very recently, didnt have any issues in past. I went far enough to rm my toolbox container and rmi the image, but same issue persist on new toolbox container.
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I had received a “permission denied” error a few days ago when trying to enter toolbox. I was able to resolve that error with sudo chown -R $USER ~/.local/share/containers/storage/overlay-containers
Ugh, yeah sorry this was my fault, the chown correct I gave out had a stupid oversight . I edited with an updated version, super sorry about that!
A simple fix would be to recreate the container; if that’s not feasible, you can find the location of sudo in ~/.local/share/overlay-containers and fix the permissions manually.
I’m admittedly not sure why the command had worked for me, maybe my sudo hadn’t been upgraded since the base image or similar.