Run A Shell Script With A Php Script As Root



Run A Shell Script With A Php Script As Root
 (382) Find work at Home Jobs
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
Run A Shell Script With A Php Script As Root
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?

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

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