chilcote / outset

Automatically process packages, profiles, and scripts during boot, login, or on demand.
572 stars 58 forks source link

wrong permission for /usr/local/outset/share/com.chilcote.outset.plist #53

Closed vikaskedia closed 6 years ago

vikaskedia commented 6 years ago

This does not work

Inside /usr/local/outset/boot-once/boot-once.sh I set:

defaults write /usr/local/outset/share/com.chilcote.outset.plist wait_for_network false

This results in: /usr/local/outset/share/com.chilcote.outset.plist to have the permission set -rw------- root:wheel

This results in the login-every script not executing. image

This works

If I do not set "defaults write /usr/local/outset/share/com.chilcote.outset.plist wait_for_network false " inside /usr/local/outset/boot-once/boot-once.sh then the permissions are:

image

gregneagle commented 6 years ago

I don't see how this is an issue/problem with Outset. This is a problem with your boot-once.sh script. defaults always sets the mode of files it writes to 600. You should fix/change your script to reset the mode to 644 after using defaults.

chilcote commented 6 years ago

Verified the permissions are correct when installed. This has come up before, and is probably due to the wiki recommending using defaults to manipulate this (non-preference) plist, which is probably bad advice. I updated the wiki https://github.com/chilcote/outset/wiki/NetworkTimeout to include a note about permissions.

vikaskedia commented 6 years ago

probably due to the wiki recommending using defaults to manipulate this (non-preference) plist

yes

I updated the wiki https://github.com/chilcote/outset/wiki/NetworkTimeout to include a note about permissions.

thanks