<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Jailkit</id>
	<title>Jailkit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Jailkit"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Jailkit&amp;action=history"/>
	<updated>2026-04-18T16:19:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Jailkit&amp;diff=5194&amp;oldid=prev</id>
		<title>FilipeFonseca at 04:47, 9 July 2021</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Jailkit&amp;diff=5194&amp;oldid=prev"/>
		<updated>2021-07-09T04:47:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== About Jailkit ==&lt;br /&gt;
&lt;br /&gt;
Jailkit is a set of utilities to enhance the possibilities of chroot jails. Jailkit contains a set of tools and config files to automate the deployment of chroot jails. Jailkit also contains various tools to limit user accounts to specific files or specific commands, configured from a config file. 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.&lt;br /&gt;
&lt;br /&gt;
Jailkit is a specialized set of tools 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.&lt;br /&gt;
&lt;br /&gt;
Jailkit is very stable software with a very stable and high quality codebase. It 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 cvs, sftp, shell or daemon processes.&lt;br /&gt;
&lt;br /&gt;
== Home Page==&lt;br /&gt;
    https://olivier.sessink.nl/jailkit/&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
    cd /tmp&lt;br /&gt;
    wget http://olivier.sessink.nl/jailkit/jailkit-2.22.tar.gz&lt;br /&gt;
    tar xvfz jailkit-2.22.tar.gz&lt;br /&gt;
    cd jailkit-2.22&lt;br /&gt;
&lt;br /&gt;
==Prepare Dependencies(Debian)==&lt;br /&gt;
    apt install build-essential autoconf automake1.11 libtool flex bison debhelper binutils-gold python -y&lt;br /&gt;
&lt;br /&gt;
==Install==&lt;br /&gt;
    echo 5 &amp;gt; debian/compat&lt;br /&gt;
    ./debian/rules binary&lt;br /&gt;
    cd ..&lt;br /&gt;
    dpkg -i jailkit_2.22-1_amd64.deb&lt;br /&gt;
&lt;br /&gt;
==Remove used files==&lt;br /&gt;
    rm -rf /tmp/jailkit*&lt;br /&gt;
&lt;br /&gt;
==Add User/Jail==&lt;br /&gt;
    mkdir -p /home/jails/USERFOLDER&lt;br /&gt;
    jk_init -v /home/jails/USERFOLDER ssh sftp basicshell jk_lsh bash editors extendedshell scp rsync ...&lt;br /&gt;
    jk_jailuser -m -j /home/jails/USERFOLDER USR&lt;br /&gt;
&lt;br /&gt;
==Add apps to jail==&lt;br /&gt;
    jk_cp  -v -j /home/jails/USERFOLDER /usr/bin/id&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SSH modification==&lt;br /&gt;
    #define username to apply chroot jail to&lt;br /&gt;
        #Match group ssh-users&lt;br /&gt;
        Match user USER&lt;br /&gt;
    #specify chroot jail&lt;br /&gt;
        #ChrootDirectory /home/jail&lt;br /&gt;
        ChrootDirectory /home/jails/USER&lt;br /&gt;
&lt;br /&gt;
==FStab modification==&lt;br /&gt;
    # create dev folder&lt;br /&gt;
        mkdir -p /home/jails/USERFOLDER/dev/pts&lt;br /&gt;
    # chroot USER bind&lt;br /&gt;
        /ORIGINAL_DEFAULT_FOLDER/		/home/jails/USERFOLDER/DESTINATION_FOLDER    	none	bind			0	0&lt;br /&gt;
        /dev/pts                    	/home/jails/USERFOLDER/dev/pts		    		none	defaults,bind		0	0&lt;/div&gt;</summary>
		<author><name>FilipeFonseca</name></author>
	</entry>
</feed>