Permission issues, not able to run script as root

前端 未结 2 389
清歌不尽
清歌不尽 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.

    0 讨论(0)
  • 2021-01-14 13:33

    Make sure that your partition is not mounted with the noexec flag (which - as the name suggests - prevents making any files executable)

    0 讨论(0)
提交回复
热议问题