Hi All,

I want to execute the php script via web server to run linux command!!! I try to use system(), exec(), shell_exec(), but the system show me "Permission Denied"..

i have set the file permission by using

chmod 777 file.php

Anyone can give me the advice?

Thanks in advance!!!!!

    Either of the following:
    1) Administrator has disabled a particular command(s)
    2) The System/passthru etc functions are disabled check via phpinfo
    3) Read the error_logs it maybe more informative of the error
    4) Safe Mode maybe enabled, however I dont think it has that affect though.

      I can use the wget, ls and etc. But i not able to use the killall, kill, sshd, apachectl restart and etc.

        The Administrator has set permissions for root only to use them and that certainly wouldnt surprise me, since you shouldnt even need access to any of them.

          I m the administrator for the server.
          Please advice me how to configure it to let the web server use the rest of the command.

          Thanks

            Originally posted by johnnycsh
            I m the administrator for the server.
            Please advice me how to configure it to let the web server use the rest of the command.

            You'd give the web server account root privileges (searching for give root privileges to user account should turn something up).

            And then prepare to duck and cover (an administrator who doesn't yet know how to administrate - I hope this isn't a real site).

              Originally posted by Weedpacket
              You'd give the web server account root privileges (searching for give root privileges to user account should turn something up).

              And then prepare to duck and cover (an administrator who doesn't yet know how to administrate - I hope this isn't a real site).

              This is my assignment. I need it to be ready urgently, so i don have much time to study all the stuff.....

              Thanks guys!!!!!!!

                Can i just assign the web server to use certain program, such as sshd, kill and killall?

                How can i do it?

                  Write a Reply...