Helo!

  first, strace doesn't output nothing more

kujon:/home/klemen/mathopd# strace -f -o trace /home/klemen/mathopd/sbin/mathopd < 
conf/mathopd.conf
/home/klemen/mathopd/sbin/mathopd: Invalid user name.

Second, CGIs should run under one and only one user account in my
oppinion. Or did I miss the point here?

Reply to your message

>>   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



-- 
Bye,
Klemen Vodopivec

Reply via email to