[asterisk-users] DeadAgi
Ishfaq Malik
ish at pack-net.co.uk
Fri Sep 18 04:13:12 CDT 2009
Steve Edwards wrote:
> On Thu, 17 Sep 2009, Anahi Ludue?a wrote:
>
>> Thanks for the answers!
>> The file didn't have the first line!
>> #!/usr/bin/php
>
> Glad you found the answer. However...
>
>> The command ls -l returns:
>>
>> -rwxrwxrwx 1 root root 140 Sep 17 15:42 finconf.php
>
> Having an executable with 777 permissions is a very bad idea. Think
> about somebody (or some program) executing something like:
>
> echo "rm -f -r /whatever-they-want" \
> >/var/lib/asterisk/agi-bin/finconf.php
>
Agreeing with the above here, really you want the script owned by
asterisk.asterisk and permissions of 0755
Ish
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Ishfaq Malik
Software Developer
PackNet Ltd
Office: 0161 660 3062
More information about the asterisk-users
mailing list