Error while executing .plist file Path had bad ownership/permissions

后端 未结 2 686
离开以前
离开以前 2021-02-01 12:28

Getting a error while executing the plist file in terminal

ERROR : Path had bad ownership/permissions

1) I created a plist

2条回答
  •  别跟我提以往
    2021-02-01 12:48

    Try changing the ownership of the .plist file:

    sudo chown root /Library/LaunchDaemons/myfile.plist
    sudo chgrp wheel /Library/LaunchDaemons/myfile.plist
    

    or more simply, change the user and group in one command:

    sudo chown root:wheel /Library/LaunchDaemons/myfile.plist
    

    It is also worth noting that these root LaunchDaemons can't be world writable, for security reasons:

    sudo chmod o-w /Library/LaunchDaemons/*
    

提交回复
热议问题