Ubuntu (Debian): Jailkit: Install How To

Overall: Jailkit is unavailable in repositories.

Background: After reading through related issues it appears that a binary installable copy of Jailkit was planned on being made available for both Red Hat based (rpm) and Debian based (apt) systems.

Issue: Jailkit is not within "software.virtualmin.com/ubuntu/ virtualmin-xenial main" or "software.virtualmin.com/ubuntu/ virtualmin-universal main"

Is there still a plan to make this available directly or does a repository have to be added?



Joe's picture
Submitted by Joe on Thu, 10/12/2017 - 09:59 Pro Licensee

Assigned: Unassigned ยป

It is in the vm/6 repositories.

The plan is to provide a migration tool that allows folks on the old repos to migrate to vm/6 repositories and to enable any of the new installer features (if desired), including jailkit. I'm working on the script for that now.

You can, if you're in a hurry to just get jailkit, switch your repository manually.

The path for the new repositories just adds /vm/6 after the domain name.





Some of the packages were available in the old repos during development, so Jamie could easily get them, but for new features, I want them to be in the new repositories (which have a different method of management, which makes it easier for me to maintain over the long term...I want to be able to eventually retire the old debian/ubuntu repositories, as they're a PITA to manage with my home-made apt repo management scripts).

You'll also need the new vm6 repo key, which is here: http://software2.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6

That can be added with apt-key add RPM-GPG-KEY-virtualmin-6 once downloaded.

For reference:
I added the key and something like the following...
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-xenial main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main

After updating and doing an "apt install jailkit" I now get the the option "Chroot jail domain Unix user?"

I also had to:
* change the home directory in the password file to include the jail and jail separator.
* Change the shell in the jailed passwd
* Copy the /usr/bin/groups to the jail