Skip to main content
deleted 102 characters in body
Source Link

I was still seem to be getting permission errors:

system log until I ran launchctl with sudo:

8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$sudo catlaunchctl load /tmpLibrary/LaunchDaemons/local.hosts.blocking.err   
cp: /etc/hosts: Permissionplist denied

I still seem to be getting permission errors:

system log:

8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$ cat /tmp/local.hosts.blocking.err   
cp: /etc/hosts: Permission denied

I was still getting permission errors until I ran launchctl with sudo:

sudo launchctl load /Library/LaunchDaemons/local.hosts.blocking.plist 
added 20 characters in body
Source Link

Removed UserName key.

Moved the plist and changed name:

Moved the plist and changed name:

Removed UserName key.

Moved the plist and changed name:

added 13 characters in body
Source Link
klanomath
  • 67k
  • 10
  • 135
  • 204

$ ls -la /Library/LaunchDaemons/

-rw-r--r--@ 1 root wheel 1474 Aug 29 13:19 local.hosts.blockingAM.plist

$ ls -la /Library/LaunchDaemons/
-rw-r--r--@  1 root  wheel  1474 Aug 29 13:19 local.hosts.blockingAM.plist  

system log:
8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$ cat /tmp/local.hosts.blocking.err
cp: /etc/hosts: Permission denied

8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$ cat /tmp/local.hosts.blocking.err   
cp: /etc/hosts: Permission denied

$ ls -la /Library/LaunchDaemons/

-rw-r--r--@ 1 root wheel 1474 Aug 29 13:19 local.hosts.blockingAM.plist

system log:
8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$ cat /tmp/local.hosts.blocking.err
cp: /etc/hosts: Permission denied

$ ls -la /Library/LaunchDaemons/
-rw-r--r--@  1 root  wheel  1474 Aug 29 13:19 local.hosts.blockingAM.plist  

system log:

8/29/16 3:50:04.006 PM com.apple.xpc.launchd[1]: (local.hosts.blockingAM[7675]) Service exited with abnormal code: 1

$ cat /tmp/local.hosts.blocking.err   
cp: /etc/hosts: Permission denied
added changes and error output
Source Link
Loading
Source Link
Loading