Can not run ifconfig like commands via browser
        Posted  
        
            by 
                savruk
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by savruk
        
        
        
        Published on 2011-02-23T14:56:50Z
        Indexed on 
            2014/06/01
            21:35 UTC
        
        
        Read the original article
        Hit count: 367
        
Problem is I cannot run "ifconfig" or similar commands via browser.
Environment:
Programming language : python
Server : lighttpd(CGI) , running on busybox.  
Well machine is really small and so I am really restricted.
Tried techniques:
chown every script to root. But there is no differences.
Why?
Because lighttpd runs under another user, I mean not under root. As it is not root, when I try to run script from browser it always calls the python file with its uid. So it makes it impossible to run "ifconfig eth0 192.168.2.123" like commands via web browser. I get "ifconfig: SIOCSIFADDR: Permission denied" error.
What can I do?
I do not have any sudoers file, so cannot modify sudo command. Well, I don't even have "sudo" command :)
Thanks for your help
© Server Fault or respective owner