FOP only running as user root

Helo,
I have installed FreePBX 2.2.2 on Debian Etch.

But I can’t get FOP running as user asterisk.
I need to change in /usr/lib/amportal
following line

su - asterisk -c “cd $FOPWEBROOT && $FOPWEBROOT/safe_opserver &”

to

$FOPWEBROOT/safe_opserver &

So FOP is running as root what I don’t want.

Rhe asterisk user and asterisk group ownes the /var/www dirctory and all subdirectorys. Apache is also running as user asterisk.

Has anybody a idee?

Thanks

Sven

The Asterisk user runnin asterisk and fop need a login shell other then /sbin/false/

sven