[Top][All Lists]

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

RE: [Jailkit-users] how-to add ftp access to ssh only jail?

From: Josh Cole
Subject: RE: [Jailkit-users] how-to add ftp access to ssh only jail?
Date: Thu, 7 May 2009 15:27:58 -0500


I finally had some time to use your suggestions below...

When using jk_cp to copy over the ftp client to the jail and its
returning the following error:

address@hidden home]# jk_cp -j /home/chrootusers /usr/bin/ftp
ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or

address@hidden home]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf

address@hidden home]# cat /etc/redhat-release
CentOS release 5.3 (Final)

I am able to ssh into the server but get the following error as well:

bash-3.2$ ftp localhost
ftp: ftp/tcp: unknown service

Any advice?

Thanks again,

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Olivier Sessink
Sent: Tuesday, April 07, 2009 2:08 AM
To: address@hidden
Subject: RE: [Jailkit-users] how-to add ftp access to ssh only jail?

> This would be great for users that are making an ftp connection to the
> server, however in our case the user is logging in via SSH which is
> locked down via jailkit and then opening an ftp session to another
> destination via command line.  This is the command we need available
> locked down with jailkit, thank you.

sorry I misunderstood you.

adding an ftp client to a jail:

add jk_init section 'netbasics' to the jail, these include the files
required to do DNS lookups and things like that.

copy the ftp client to the jail with jk_cp

test it (see the howto on jail debugging), if it does not work use for
example strace to find out which files are not found in the jail.


Jailkit-users mailing list

reply via email to

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