Skip to main content

odd OSX permissions issues with a worklet

  • September 21, 2020
  • 2 replies
  • 58 views

I am running into an issue with a cleanup worklet I am writing.

If I try to do anything in a users Downloads folder (/Users/username/Downloads) the commands return nothing, as if the directory is empty. The same behavior exists whether its a find command, or just a simple ls. I can do an ls on /Users/username, but not /Users/username/Downloads, and both directories are world readable.

running the same bash script from the command line both as root and as a non admin user show the script working fine.

I must be missing something obvious, but is there a reason automox wouldn’t be able to do this? or do I have some permission messed up?

2 replies

Nic-Automox
  • Former Automox Employee
  • 832 replies
  • September 21, 2020

It’s probably a permissions issue. If you look at the endpoint is there a user prompt for permission to that directory? Something similar to this?
image

If you have an MDM setup you can configure those permissions centrally but otherwise you’ll need configure them by hand on each device. https://support.apple.com/en-lb/guide/mdm/mdm38df53c2a/web

The protected folders specifically are Desktop, Downloads and Documents, which is why you can get to the root user folder but not Downloads.


  • Author
  • Rookie
  • 4 replies
  • September 22, 2020

I didn’t get any notifications, but your fix did work. I added a new PPPC policy to allow access to the protected folders and the worklet is now functioning as expected. Thanks for the tip


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings