perl -e is acting funny in a chroot jail
tex at off.org
Thu Jul 18 13:30:09 CDT 2002
On Thu, Jul 18, 2002 at 11:22:09AM -0700, Elmshauser, Erik wrote:
> > Do you have a /tmp in the jail? Backrev versions of Perl (prior to
> > 5.8) write a small file in /tmp to run the -e script. So the error
> > message perhaps is accurate... :)
> > In 5.8, this was eliminated, because it can lead to a security hole.
> Yeah, there was a /tmp there, but it was set to 755. Setting it to 777
> does not seem to have resolved the issue.
/tmp should be set to 1777 to prevent other folks from monkeying with
your /tmp files. It is a security issue w/out the 1.
> root at charon:/# chmod 777 tmp/
> root at charon:/# ./usr/local/bin/perl -e 'exit'
> Can't open perl script "-e": No such file or directory
> Also, that error looks like it is trying to use '-e' as a filename, I'm
> not sure, but I doubt that this is what perl would use for a temp file
Try running truss/strace on it. That will show you what it's trying
More information about the Pdx-pm-list