Allowing Apache on EC2 to run sudo commands via CGI script
问题 I have an Amazon (AMI) Linux EC2 instance running on AWS. I'm create a perl script that will create directories when it is called through a web url (CGI script). However, because the browser is executing the script, the user apache is running the perl script. Because apache is not allowed to do mkdir command without using sudo none of the directories are being created. I've modified the scripts permissions to execute (755) via the browser, however none of the mkdir commands work. I even tried