I want to change the permissions of directories using a shell script which gets executed by a php, so this runs under the apache
user.
Unfortunately there are some directories whose permissions are set to root
.
Is there way to run this script as root
or are there other alternatives I can consider?