Sorry for the long title but I have run into the following problem. I am attempting to run Chromium-Browser from within a container from the host (figured it was a goodway to sandbox the internet). It works splendidly but I have to --no-sandbox Chromium to get it to run as root (this makes Chromium throw up a warning). No problem, I’ll run it as su ubuntu. Much better except if I want to run from the host:
$ lxc exec Chromium su ubuntu chromium-browser
"bash: chromium-browser: Permission denied"
From inside the container:
root@Chromium# su ubuntu
gets no error and it runs fine.
Is there any way to get chromium-browser to execute via a non-privileged user from outside the container?
EDIT: lxd version is 4.14
container OS is Ubuntu 18.04