How to run from PHP a bash script under root user

前端 未结 5 1481
天涯浪人
天涯浪人 2020-12-09 18:02

How to run from PHP a bash script under root user (with all permissions) and not nobody user - php default user?

thats my output af

5条回答
  •  庸人自扰
    2020-12-09 18:26

    I would add a specific rule to allow this script to be called by nobody user, using sudo.

提交回复
热议问题