>   I just copied passwd, group and shadow and gshadow file to etc dir
>   in chrooted dir. Not working. May be this because I'm using pam?

Could be. I do not have a working debian (or any linux version) to test
with. Try

# strace -f -o trace /usr/local/sbin/mathopd < /etc/mathopd.cfg

(replace mathopd and the path to the config file to whatever is valid for
your system of course.)

Then inspect the trace file to see where things go wrong.

>   And, wouldn't be better to set username prior to Chroot?

That probably will not solve your problem in the end, because you will
need the passwd etc file as soon as you start running CGI thingies. Unless
of course you plan to only serve static pages, in which case you can
probably do away with the whole chroot business.

Cheers
Michiel

Reply via email to