launchctl leadをするとPath had bad ownership/permissionsとエラーが出るときの対処法
問題
$sudo launchctl load XXXXX.plist XXXXX.plist: Path had bad ownership/permissions
とエラーが出る。
解決方法
登録したいファイルの所有者とグループ変更し、アクセス権限を変更する。
$chown root:wheel XXXXX.plist $chmod 600 XXXXX.plist $ls -l -rw-rw---- 1 root wheel <省略> XXXXX.plist