Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] does not work on Ubuntu 24 #355

Closed
NightMachinery opened this issue Jul 1, 2024 · 5 comments
Closed

[BUG] does not work on Ubuntu 24 #355

NightMachinery opened this issue Jul 1, 2024 · 5 comments

Comments

@NightMachinery
Copy link

> /home/guest/.junest/usr/bin_wrappers/sudo pacman -Syy
bwrap: setting up uid map: Permission denied
Error: Something went wrong while executing bwrap command. Exiting
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

❯ uname -a
Linux Taher 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
@NightMachinery
Copy link
Author

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?

@fsquillace
Copy link
Owner

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.

@NightMachinery
Copy link
Author

So it's impossible? I'll close the issue then, thanks.

@rickybrent
Copy link

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.

@contrarybaton60
Copy link

linuxmint/mint22-beta#82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants