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

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

1 Answer 1


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 .