Permission failure (How do I fix this?)

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Permission failure (How do I fix this?) Tue Jul 16, 2019 12:43 pm • by mmynsted
  • I updated permissions for Hazel to full disk access as described in the documentation.
  • I stopped Hazel and restarted.
  • I have a rule that attempts to assign tags to files in the /Applications folder.

It seems that hazel still fails to alter the applications. Here is an example failure message from the log.

Code: Select all
2019-07-16 11:29:53.722 hazelworker[17277] Could not set tags for URL file:///Applications/MacPorts/Audacity.app/: Error Domain=NSOSStatusErrorDomain Code=-5000 "afpAccessDenied: Insufficient access privileges for operation "
2019-07-16 11:29:53.722 hazelworker[17277] Caught exception in rule evaluation of file Audacity.app: Could not set tags for /Applications/MacPorts/Audacity.app
2019-07-16 11:29:53.722 hazelworker[17277] ###main load address: 0x102ea4000
2019-07-16 11:29:53.722 hazelworker[17277] ###Noodle load address: 0x102fc8000
2019-07-16 11:29:53.722 hazelworker[17277] ###CK load address: 0x102f8d000
2019-07-16 11:29:53.722 hazelworker[17277] (
   0   CoreFoundation                      0x00007fff45eadcfd __exceptionPreprocess + 256
   1   libobjc.A.dylib                     0x00007fff70557a17 objc_exception_throw + 48
   2   hazelworker                         0x0000000102edcc96 hazelworker + 232598
   3   hazelworker                         0x0000000102ed748d hazelworker + 210061
   4   hazelworker                         0x0000000102ee9ff6 hazelworker + 286710
   5   hazelworker                         0x0000000102eab2dc hazelworker + 29404
   6   hazelworker                         0x0000000102eae4cb hazelworker + 42187
   7   hazelworker                         0x0000000102eb07dd hazelworker + 51165
   8   libdyld.dylib                       0x00007fff71d253d5 start + 1
   9   ???                                 0x0000000000000003 0x0 + 3
)


Not sure how to correctly add an image here.
The following shows that hazel has full disk permissions.
https://imgur.com/6f7yC3O

How do I fix this?
mmynsted
 
Posts: 5
Joined: Mon Jul 15, 2019 11:40 pm

Re: Permission failure (How do I fix this?) Tue Jul 16, 2019 9:22 pm • by luomat
It sounds like Hazel does not have "permission" in the Unix-sense of the word.

If you open Terminal.app and type:

ls -ld /Applications/MacPorts/Audacity.app

I'm guessing that it will show that the user "root" is the "owner" of the file /Applications/MacPorts/Audacity.app

If you do

ls -ld /Applications/MacPorts

it might also show that "root" is the "owner of /Applications/MacPorts

in which case, Hazel can have full-disk access, but still cannot modify those paths, any more than it would be able to modify any other file which is not owned by the same user who is using Hazel.
luomat
 
Posts: 78
Joined: Wed Mar 10, 2010 3:57 pm

Re: Permission failure (How do I fix this?) Thu Aug 01, 2019 12:02 pm • by mmynsted
Thank you.

Okay I would like to ignore files that have root as the owner. For some reason I am unable to set the owner attribute in the filter.

https://imgur.com/vNmSJkM
https://imgur.com/OpyT9uy

What happens is that I enter root or "root" and it is somehow not accepted.
mmynsted
 
Posts: 5
Joined: Mon Jul 15, 2019 11:40 pm

Re: Permission failure (How do I fix this?) Fri Aug 02, 2019 9:56 am • by Mr_Noodle
Try using Hazel's preview function to see what the "owner" field is set to.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Permission failure (How do I fix this?) Fri Aug 02, 2019 3:01 pm • by mmynsted
Thank you. The owner was the numeric owner, so for `root` it was `0`.
mmynsted
 
Posts: 5
Joined: Mon Jul 15, 2019 11:40 pm


Return to Support