shell script run when I am root but I get a permission denied when it is invoked from a Makefile (still as root)

后端 未结 2 851
遥遥无期
遥遥无期 2021-01-28 07:31

I need to run a Make script that invokes a shell script.

I can run the shell script directly as root but when running make on the makefile (still as roo

2条回答
  •  醉梦人生
    2021-01-28 08:03

    Adding execution permission to the file Group rather that the file User fixed the issue.

    PS: I wonder why? It seems the Make utility run shell scripts not with the same user that started Make...

提交回复
热议问题