junest
junest copied to clipboard
Report whether Linux User namespace is enabled by default in the Linux distros
The reason why junest -u
is not used as the main backed solution for JuNest is that some Linux distros do not have the linux user namespace enabled by default. It is required to have root privileges in order to enabled it.
Fortunately, in several distros like Ubuntu and Arch Linux it seems they have enabled it by default.
This issue is to report the list of distro which have the namespace enabled by default and decide whether is the right time to have such backend as the primary solution for JuNest and Proot as secondary solution.
Major Distros to look at:
- Ubuntu
- Arch Linux
- Debian
- Fedora
3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64
: disabled
Good news! I run provisioned machines in Vagrant on multiple Linux Distros. The user namespace is enabled on most of the distros:
Archlinux
Works great!
Linux archlinux 5.2.5-arch1-1-ARCH #1 SMP PREEMPT Wed Jul 31 08:30:34 UTC 2019 x86_64 GNU/Linux
CentOS 7
Does NOT work
Linux localhost.localdomain 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Debian 8 Jessie
The user namespace is disabled. Root privileges are required to enable it.
Linux jessie 3.16.0-9-amd64 #1 SMP Debian 3.16.68-1 (2019-05-22) x86_64 GNU/Linux
Fedora 30
Works great!
Linux localhost.localdomain 5.0.9-301.fc30.x86_64 #1 SMP Tue Apr 23 23:57:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
OpenSuse 42.3
Works great!
Linux opensuse42 4.4.180-102-default #1 SMP Mon Jun 17 13:11:23 UTC 2019 (7cfa20a) x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 18.04 LTS
Works great!
Linux jessie 3.16.0-9-amd64 #1 SMP Debian 3.16.68-1 (2019-05-22) x86_64 GNU/Linux
Ubuntu 19.04
Works great!
Linux ubuntu1904.localdomain 5.0.0-31-generic #33-Ubuntu SMP Mon Sep 30 18:51:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
RHEL 8
Works great!
Linux rhel8.localdomain 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux