Can not run ifconfig like commands via browser
- by savruk
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