I have a php script in which i am executing some shell commands (e.g date, who, ping, shutdown
etc) using the System
command. When I run the script from command line, every thing goes fine because I have the root privileges.
But if I run the script from web browser, only those commands are executed which don't need root privilages.
How to fix it?
It might be insecure but at the moment, I am not concerned about security.