[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
apache, chroot, testing
openbsd 3.3, openbsd beginner.
I know apache runs as chroot and tailored for it, copy libraries needed by
cgi, adapt configuration files and so on.
I know I can test out scripts ecc. by something like
cp -r /bin /var/www/bin ; chroot /var/www /bin/sh ; rm -r /var/www/bin
(that's how I found out exactly what libraries ecc. I needed to copy in
order to get the cgi work), however I need to do some debugging. However I
get:
/var/www#chroot /var/www /bin/sh
/bin/sh: No controlling tty (open /dev/tty: No such file or directory)
/bin/sh: warning: won't have full job control
so I did
/var/www#mkdir dev ; cd dev ; ls -l /dev/tty
crw-rw-rw- 1 root wheel 1, 0 Jul 31 14:16 /dev/tty
/var/www/dev#mknod tty c 1 0 ; chown root.wheel tty ; chmod 666 tty
/var/www/dev#chroot /var/www /bin/sh
/bin/sh: No controlling tty (open /dev/tty: Device not configured)
/bin/sh: warning: won't have full job control
Needless to say, perl -d won't work.
Any way to solve this (beside duplicating every file containing chrooted
paths and running outside chroot) ?
Thanks
Heiko
--
-- PREVINET S.p.A. www.previnet.it
-- Heiko Herold Heiko.Herold@previnet.it
-- +39-041-5907073 ph
-- +39-041-5907472 fax