Hi there! I have the following problem:
I launched a new lxc container with
lxc launch ubuntu:20.04 sift
Got in its bash with
lxc exec sift bash
Now I’m root. I don’t want that so I
Now as the ubuntu non-root user of the container I try to use
sudo but I get
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I’ve various things online but nothing seems to work. To save space I moved my containers to my 1TB hard drive using a
ln -s. Could this be the case? Any ideas?
Edit: The result of
ls -lh /usr/bin/sudo:
-rwxrwxrwx 1 nobody nogroup 163K Jan 19 14:21 /usr/bin/sudo
And if I try to run
chown root:root /usr/bin/sudo nothing changes.