[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Jailkit-users] Creating Additional Jailed Users

From: Russ Lavoie
Subject: RE: [Jailkit-users] Creating Additional Jailed Users
Date: Mon, 12 Jun 2006 08:44:02 -0500

You can create a bash script.  But here is an easier way to do it other
than jk_copy.  This works great for me I created 20 jail users with a
bash script, but I had to run the script 20 times.  Better than typing
all the below though :)

Initialize the jail root

jk_init /var/ftp/$USER jk_lsh

Initialize commands to be allowed
jk_init /var/ftp/$USER sftp scp (scp and other commands are optional)

Create the user
Adduser $USER
Passwd $USER

Jail the user

jk_jailuser -m -j /var/ftp/$USER/ $USER (don't forget the ending slash

Edit the file /var/ftp/$USER/etc/jailkit/jk_lsh.ini to make it like

paths= /usr/bin, /usr/lib/, /usr/libexec/

no of course the $USER is a variable for the user's name you are

Anyhow, that is how I did it.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Michael Groves
Sent: Monday, June 12, 2006 1:58 AM
To: address@hidden
Subject: [Jailkit-users] Creating Additional Jailed Users

I have setup my first jailed user and this works a treat.
To ensure they can't see each others home directory I need to setup  an
additional 50 jails, is there an easy way to do this?

I'm guessing you can't simply copy/paste and edit configs as this will
also copy access rights, do I need to manually run jk_init, jk_cp etc
etc for each user?


ValueLink is a specialist service provider of financial data to the
major UK and International centres. Our clients require reliable,
accurate data with maximum coverage on a fixed time delayed basis. We
work closely with each of our clients to provide a service which meets
their specific requirements and maximises efficiency of their process.
For further information visit our website @ www.valuelink.co.uk
CONFIDENTIALITY: The information in this e-mail and any attachment is
confidential. It is intended only for the named recipient(s). If you are
not a named recipient, please notify the sender immediately and do not
read, use, copy or disseminate this information. ValueLink Information
Services Ltd accepts no liability whatsoever for any direct or
consequential loss arising from the use, or reliance on, this e-mail or
it's contents.

Jailkit-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]