consultorpc

Well-Known Member
PartnerNOC
Jun 18, 2003
51
0
156
Hi,

I've created the posteasyapache script with the proper permissions:

Code:
# ls -lh /scripts/posteasyapache 
-rwxr-xr-x  1 root root 107 Aug 31 19:08 /scripts/posteasyapache*
My script looks like this:

Code:
#!/bin/bash

chown nobody:nobody /usr/local/apache/htdocs/index.php
rm /usr/local/apache/htdocs/index.html
I tried to run easyapache but it looks like the script wasn't run as the owners of index.php, for example, were still root:root.

Am i doing something wrong?