[olug] Running commands from web pages.

Wes Ferrel wferrel at ferrel.org
Tue Feb 8 18:29:28 UTC 2005


What, you want usefull details to actually help diagnose the problem? :)

running as apache, user is set to /sbin/nologin for it's shell.

The script itself calls /bin/sh, and it's running succesfully, it's just 
when it calls the traceroute or mtr commands that I hit a snag.

Oh, I do have selinux enabled on this system, which may be a 
contributing factor, for I admit not being very familiar with this.

    Wes


Terry wrote:

>Something easy but gotta start somewhere...
>What user is your webserver running as?  Does that user have a valid shell?
>
>
>On Tue, 08 Feb 2005 12:12:43 -0600, Wes Ferrel <wferrel at ferrel.org> wrote:
>  
>
>>Ok, so I think I'm missing something obvious.
>>
>>I have a web page which by way of a simple cgi (shell) script, prompts
>>for a host and runs either mtr or traceroute from the web host to the
>>entered address.
>>
>>This was working on a previous RH 9 system (don't recall other
>>details).  However, running on FC3, with apache 2.0.52 I'm getting errors:
>>
>>traceroute: icmp socket: Permission denied
>>
>>mtr: unable to get raw sockets.
>>
>>Anyone with thoughts / suggestions?
>>
>>I have a feeling the answer will be a slap-to-the-head, "DOH" kind of
>>moment.
>>
>>    Thanks
>>       Wes
>>_______________________________________________
>>OLUG mailing list
>>OLUG at olug.org
>>http://lists.olug.org/mailman/listinfo/olug
>>
>>    
>>
>_______________________________________________
>OLUG mailing list
>OLUG at olug.org
>http://lists.olug.org/mailman/listinfo/olug
>  
>




More information about the OLUG mailing list