I'm trying to get a simple authentication cgi working in the default chroot, but I'm running into some pty problems. I've installed p5- Expect from packages (and the dependency p5-IO-Tty) and copied the files into chroot. The script runs fine when run manually (non- chroot), but fails with the following error when run via apache:

pty_allocate: openpty(): No such file or directory at /usr/local/ libdata/perl5/site_perl/i386-openbsd/IO/Pty.pm line 24.
Cannot open a pty at /sites/cgi/syncauth.cgi line 11

Tty.so contains the missing openpty() function, and has been copied into the chroot, so I'm not sure what else I might be missing. Any ideas?

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net

Reply via email to