[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii exec problem on browser
From: |
Reinhold Jordan |
Subject: |
Re: gnokii exec problem on browser |
Date: |
Sun, 11 Mar 2007 07:56:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5 |
Hi,
> I have this php file which containns an exec() function for executing gnokii
> commands. When I execute this php file in the command line, the gnokii
> command gets executed. But if I try to execute the php file via the browser,
> the gnokii command doesn't execute. Help please
>
> Cannot open logfile: Permission denied
>
> any ideas? thanks
yes. The user is an other. If you try it with the browser, the user
'apache' (or 'www', 'http' or someone similar) try to execute gnokii.
This user have less rights. I prefer to set the setuid bit of gnokii
over changing the apache user
Regards, Reinhold
--
Reinhold Jordan
WWW: http://reinhold.bachrain.de Mail: address@hidden
qmail-spam-protection with intelligent-greylisting, reverse-smtp....
qmail.spamfilter.070126.109.tar.bz2 actually rejects 99.998% of spam!!