Running exec as a different user

后端 未结 4 1223
走了就别回头了
走了就别回头了 2020-12-17 15:37

Is it possible to run exec() as a a different user (on my box it runs as www-data). I wish to execute a script that needs access to files that are not owned by www-data.

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-17 16:11

    You can change the user under which your server runs. This can be easily done using the windows version of apache (apache runs there as service and it is easy to configure the user under which apache runs).

    Which server plattform do you use?

提交回复
热议问题