Fix error from systemsetup #338

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Contributor

alimony commented Feb 11, 2014

I get an error from each call to systemsetup:

2014-02-11 16:56:11.875 systemsetup[43070:1403] ### authenticateUsingAuthorizationSync error:Error Domain=com.apple.systemadministration.authorization Code=-60007 "The operation couldn’t be completed. (com.apple.systemadministration.authorization error -60007.)"

Running them as sudo fixes this, as in the proposed patch.

@alimony alimony Fix error from systemsetup
I get an error from each call to `systemsetup`:

```
2014-02-11 16:56:11.875 systemsetup[43070:1403] ### authenticateUsingAuthorizationSync error:Error Domain=com.apple.systemadministration.authorization Code=-60007 "The operation couldn’t be completed. (com.apple.systemadministration.authorization error -60007.)"
````

Running them as sudo fixes this, as in the proposed patch.
71be7ea
Owner

mathiasbynens commented Feb 11, 2014

Where do you see this error message? It’s working fine for me, even without sudo.

Contributor

alimony commented Feb 11, 2014

When I run the .osx file from within my home directory:

./.osx 
2014-02-11 17:09:52.277 systemsetup[44935:1403] ### authenticateUsingAuthorizationSync error:Error Domain=com.apple.systemadministration.authorization Code=-60007 "The operation couldn’t be completed. (com.apple.systemadministration.authorization error -60007.)"

In this case it is this line causing it:

systemsetup -setrestartfreeze on

The error goes away if I change the line to:

sudo systemsetup -setrestartfreeze on

@kdeldycke kdeldycke added a commit to kdeldycke/dotfiles that referenced this pull request Mar 7, 2014

@kdeldycke kdeldycke systemsetup seems to requires root 9b58724
Owner

mathiasbynens commented Jun 7, 2014

What OS X version are you running?

Contributor

alimony commented Jun 13, 2014

10.9.3

Same for me, macOS 10.12.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment