Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Users/markus/Library/Calendars (Errno::EPERM) #1

Closed
markus7017 opened this issue Sep 13, 2021 · 2 comments
Closed

/Users/markus/Library/Calendars (Errno::EPERM) #1

markus7017 opened this issue Sep 13, 2021 · 2 comments

Comments

@markus7017
Copy link

Hi,

I try to run the script, but it aborts with an error

sudo ruby icloud_calendar_urls.rb
Password:
Traceback (most recent call last):
	1: from icloud_calendar_urls.rb:59:in `<main>'
icloud_calendar_urls.rb:59:in `glob': Operation not permitted - /Users/markus/Library/Calendars (Errno::EPERM)
'''

As you see I already try to run it with sudo. I'm on Mac OS Catalina with latest patch level
@erickvd
Copy link

erickvd commented Mar 31, 2022

Hello

I had the same problem today and I solved it by allowing full disk access to Terminal.
This can be achieved in Preferences>Security&Privacy. In the list, choose "Full DIsk Access", unlock the item, click on the "+", add Terminal (or whatever you use...).

It worked for me.

@midnightmonster
Copy link
Owner

@erickvd thanks for chiming in! The script still works for me with the system ruby even though I don't have Full Disk Access allowed for Terminal, but I expect that will work for anyone who has this problem. FWIW, you should probably turn that back off once you have what you need.

@markus7017 sudo is not necessary and won't help, but this does seem like some kind of Apple-protecting-you-from-yourself thing.

I have a hazy memory of being prompted (maybe with a little dialog, not on the terminal?) to allow access to the folder the first time I tried messing with this. If anyone else runs into this, try typing this in Terminal before trying the calendar script again:

ls ~/Library/Calendars

I think something like that is what got Mac OS to prompt me to allow access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants