5
sqlite3 ~/Library/Mail/V6/MailData/Envelope\ Index vacuum;
Error: unable to open database "/Users/Me/Library/Mail/V6/MailData/Envelope Index": 
unable to open database file

This happened after upgrading to Mojave. How can I get access to the database file?

1 Answer 1

5

I was having this issue and solved it before posting the question. I was also having other quirky permissions issues within Terminal after upgrading to Mojave.

I stumbled upon this and thought I would share here, since I don't normally consult the more casual Mac user pages: Fix Terminal “Operation not permitted” Error in MacOS Mojave

Basically, you need to add Terminal.app to have Full Disk Access within System Preferences -> Security & Privacy -> Privacy tab.

4
  • 2
    Please don't just give a link as it will change but put the information in the answer. The link can be left for attribution and also if it has more information.
    – mmmmmm
    Commented Oct 15, 2018 at 16:55
  • People are absolutely fascinated with these "punch great big holes in the OS" sort of posts, while at the same time absolutely frothing at the mouth about insert_evil_corporation and security. Commented Oct 15, 2018 at 17:06
  • In Sonoma, it's slightly different: System Preferences -> Privacy & Security -> Full Disk Access -> Terminal
    – Randall
    Commented Jun 18 at 14:14
  • Also, note that this will (at least in newer OSX versions) require and administrator password - so you'll need to go through your IT channels to change this. (All I want to do is to "undo" the 'Always Allow' prompt that I clicked 'yes' to in Safari)
    – Randall
    Commented Jun 18 at 14:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .