[Bioperl-l] bioperl in jail

Dr. Lutfullah lutfullah at upesh.edu
Sun Feb 19 12:01:05 EST 2006


I am trying to create a situation where users can ssh login to a chrooted
jailed account with limited functionality.
I created the chroot jail on my Fedora Core 4 installation using a script
available at:
The script has a line:
APPS="/bin/bash /bin/cp /usr/bin/dircolors /bin/ls /bin/mkdir /bin/mv
/bin/rm /bin/rmdir /bin/sh /bin/su /usr/bin/groups /usr/bin/id
/usr/bin/rsync /usr/bin/ssh /usr/bin/scp /sbin/unix_chkpwd
to which I added everything I could get with /bin/perl to make it:

APPS="/bin/bash /bin/cp /usr/bin/dircolors /bin/ls /bin/mkdir /bin/mv
/bin/vi /bin/rm /bin/rmdir /bin/sh /bin/su /usr/bin/groups /usr/bin/id
/usr/bin/rsync /usr/bin/ssh /usr/bin/scp /sbin/unix_chkpwd
/usr/libexec/openssh/sftp-server /usr/bin/perl /usr/bin/perl5
/usr/bin/perl5.8.6 /usr/bin/perldoc /usr/bin/perlbug /usr/bin/perlivp
/usr/bin/perlcc /usr/bin/foomatic-perl-data /usr/bin/find2perl"

perl becomes available inside the jail but I cannot use the line "use
Bio::Perl" inside the jail.

The script produces an error on including /usr/lib or /usr/lib/perl5:

Copying necessary library-files to jail (may take some time)
cp: omitting directory `/usr/lib'
ldd: /usr/lib: No such file or directory
Copying files from /etc/pam.d/ to jail
Copying PAM-Modules to jail

In the jailed account the little test program:

use Bio::Perl;
print 2+4;

generated this error:

Can't locate Bio/Perl.pm in @INC (@INC contains:

Any help would be much appreciated. Thanks in advance.


More information about the Bioperl-l mailing list