I'm trying to recreate the installation of an existing FTP server set up with a Chroot Jail (download available here: http://sourceforge.net/projects/jail
, so we know which one I'm referring to). The original server is going to be replaced, and unfortunately the original server was set up before my time. Having set up SCP Only jails before, I figured this would be straight-forward.
I downloaded and extracted the chroot jail, and installed as instructed. When I followed the procedure for creating the user and the associated home dir in the jail, and attempted to log in, I get the following error:
jail: chrooted directory /home/jailtest is not configuredfor jail (bad passwd file); bailing out.
Here's the procedure to add the user:
Linux# /usr/sbin/adduser -g users -d /home/jail/home/jailtest -s /usr/local/bin/jail jailtest
Linux# passwd jailtest
Linux# /usr/local/bin/addjailuser /home/jail /home/jailtest /usr/local/bin/jail jailtest
So, on our existing system, jailed users' home dirs are located under /home/jail/home/<user>, and the chrooted binaries are located in /home/jail/bin. I've checked that all of the necessary binaries are there, and still I get this message when attempting to "su - jailtest". When I attempt to log in remotely using FTP, it won't accept my password. The above procedure to add the user is what we have been using for years to add new users to the jail, but on this new server it just refuses to work.
This has to be something small and simple I'm missing, but I've followed the install instructions to the tee (however short they are).
Has anyone using this jail seen this before?