Permission issues, not able to run script as root

前端 未结 2 417
清歌不尽
清歌不尽 2021-01-14 12:54

I am running a shell script(Script.sh) which, itself, is calling other shell scripts( Script2.sh, Script3.sh ...etc). I logged in as a root user and have given execution per

2条回答
  •  生来不讨喜
    2021-01-14 13:21

    Kindly make sure the permission and ownership for the script.sh file, also try

     # chmod 755 script.sh
     # chown root.root script.sh
    

    Thanks.

提交回复
热议问题