3

When I am using Terminal to go to different folders such as Documents, Downloads, Photos etc I get presented with a dialog requesting me to grant Terminal access to these folders such as below:

enter image description here

Is there anyway to bypass this by using Sudo rights in Terminal such as:

$ sudo cd ~/Downloads

Unfortunately doing the above still shows the dialog when I was expecting the password to be enough. Is there any way to grant permission via terminal?

My OS is Catalina

2
  • Have you tried adding terminal.app to System Preferences > Security & Privacy > Privacy > Full Disk Access? – Steve Chambers Dec 4 '20 at 23:58
  • Can it be added via Terminal? – Matt9Atkins Dec 5 '20 at 2:08
2

Yes. Open up security preferences.

Add Terminal app to full disk access, same as described for the systemsetup command.

You must log in to answer this question.

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