Closed NightMachinery closed 4 months ago
I solved this by:
cat << 'EOF' | sudo tee -a /etc/sysctl.d/soften.conf
kernel.apparmor_restrict_unprivileged_unconfined=0
kernel.apparmor_restrict_unprivileged_userns=0
EOF
sudo reboot
But this requires root access. Is there no way to do it without root access?
Thanks for raising this, I am afraid that if ubuntu does not have user namespace enabled by default, a root access is needed. I am not really sure why they have done this. :/
In other ubuntu versions and majority of distros this is enabled by default.
So it's impossible? I'll close the issue then, thanks.
I ran into the same problem -- you can enable user namespaces just for junest like this (at the default install location):
cat << 'EOF' | sudo tee /etc/apparmor.d/junest | sudo apparmor_parser -a
abi <abi/4.0>,
include <tunables/global>
profile junest @{HOME}/.opt/junest/bin/junest flags=(unconfined) {
userns,
}
EOF
... though this does still require root.