jk_init command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
jk_init: command not found
or when using sudo you get the following error message
sudo: jk_init: command not found
Solutions to jk_init: command not found
How To Fix jk_init: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jk_init is provided by jailkit package.
jailkit is:
Jailkit is a set of utilities to limit user accounts to specific files using chroot() and or specific commands. Setting up a chroot shell, a shell limited to some specific command or a daemon inside a chroot jail is a lot easier and can be automated using these utilities.
Jailkit is a specialized tool that is developed with a focus on security. It will abort in a secure way if the configuration, the system setup or the environment is not 100% secure, and it will send useful log messages that explain what is wrong to syslog.
Jailkit is known to be used in network security appliances from several leading IT security firms, Internet servers from several large enterprise organizations, Internet servers from Internet service providers, as well as many smaller companies and private users that need to secure login in services or in daemon processes.
Currently, Jailkit provide jails for cvs, git, scp sftp, ssh, rsync, procmail, openvpn, vnc, etc.
Jailkit make available the following commands: jk_check, jk_chrootlaunch, jk_chrootsh, jk_cp, jk_init, jk_jailuser, jk_list, jk_lsh, jk_socketd, jk_uchroot, jk_update.
To fix this problem, we can install more using the command below.
sudo apt-get -y install jailkit
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install jailkit.
sudo apt -y install jailkit
Or if you have aptitude installed you can use the following command.
sudo aptitude install jailkit
Summary
In this tutorial we learn how to fix jk_init command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.