----- Original Message ----- From: "Jonathan Paton" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, December 18, 2004 6:54 PM Subject: Re: trying to chroot perl and its modules
> > with the command > > > > /usr/sbin/chroot /chroot/ /usr/bin/perl /mail.pl > > > > i receive the error > > > > Failed to connect to mail server: No such file or directory > > at /mail.pl line 19 ($msg->send('smtp', 'host.com') > > > > This script works well outside the chroot area. > > Problem is either a misunderstanding or oversight. > > If you use chroot then you change what the program percieves > as the root directory. So /mail.pl in the chroot enviroment > would be /chroot/mail.pl outside. mail.pl is in a directory no > longer accessable once you are in the chroot jail. > > chroot should never be an excuse for running untrusted or > poor quality software. It is simply another layer of security, > which usually restricts damage if the code is exploited. > > Jonathan Paton > > -- > #!perl > $J=' 'x25 ;for (qq< 1+10 9+14 5-10 50-9 7+13 2-18 6+13 > 17+6 02+1 2-10 00+4 00+8 3-13 3+12 01-5 2-10 01+1 03+4 > 00+4 00+8 1-21 01+1 00+5 01-7 >=~/ \S\S \S\S /gx) {m/( > \d+) (.+) /x,, vec$ J,$p +=$2 ,8,= $c+= +$1} warn $J,, > Well, i am trying to figure out what i have forgotten to copy into the chroot jail. Why should my experiment not work? I cannot see any reason of not working. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>