[Bioperl-l] bioperl in jail

Boris Steipe boris.steipe at utoronto.ca
Sun Feb 19 22:34:52 UTC 2006


The path that perl uses internally to search its modules (@INC) is  
not the same thing as the path your shell uses. You have to modify  
@INC either within running scripts, or by setting the PERL5LIB  
environment variable upon login.

e.g. see http://modperlbook.org/html/ch03_09.html

HTH,
B.



On 19 Feb 2006, at 12:01, Dr. Lutfullah wrote:

> Hello,
>
> 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:
> http://www.fuschlberger.net/programs/ssh-scp-chroot-jail/
> 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
> /usr/libexec/openssh/sftp-server"
> =======================
> 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:
> /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread
> ............................................
>
> Any help would be much appreciated. Thanks in advance.
>
> LK
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list