0

I have a command that can only be executed as root. I have put this command in a bash script called testscript. My testscript is placed at /home/$USER/. I want to execute this script using Php from a browser. I tried shell_exec but it gives me permission denied. How do i do this?

nmadhok
  • 1,704
  • 3
  • 16
  • 20

0 Answers0