i was wondering if there is a way to run a php script at root?
im getting an error when i try to create a file or make a directory it keeps telling me i dont have permission to do it
can you help?
Run A Shell Script With A Php Script As Root
Run A Shell Script With A Php Script As Root
Run A Shell Script With A Php Script As Root
Post Description:
Post Tags: run, a, shell, script, with, a, php, script, as, root
This Post Has Been Viewed 384 Times Since Sat Mar 15, 2008 8:27 pm Posted By hostman with 1 replies
Post Description:
Post Tags: run, a, shell, script, with, a, php, script, as, root
This Post Has Been Viewed 384 Times Since Sat Mar 15, 2008 8:27 pm Posted By hostman with 1 replies
| Run A Shell Script With A Php Script As Root |
Leave Your Comments [ dejar commentarios ]
Comments and replies About Run A Shell Script With A Php Script As Root
:: 1 :: #48251 - Reply By reply On Wed Apr 02, 2008 3:37 am
try this:
//first change the owner of the script file to root:
# chown root scriptname
//then change the permission on the script file to suid with execute permissions for all users:
# chmod 4755 scriptname
greetz
//first change the owner of the script file to root:
# chown root scriptname
//then change the permission on the script file to suid with execute permissions for all users:
# chmod 4755 scriptname
greetz

