Granting zsh permission to external drive

I'm trying to switch over from bash to zsh, and one problem I have is figuring out how to get access to my external drive (my Mac's local drive is accessible). I've searched on here and elsewhere online but haven't found any solutions that work. I have read & write permissions to the disk (I access it as admin), the drive's format is APFS, so I'm not sure what else to do. I haven't made .zprofile or .zshrc files yet, nor have I migrated any bash profile code to the zsh-equivalent files yet, if that's possibly the culprit. Although, looking over my bash files, I don't have much code in the bash files other than settings for Homebrew and Python.


Any help is appreciated, I'm curious to try out zsh but this is preventing me from doing so.

Mac mini, macOS 14.7

Posted on Jul 27, 2025 11:13 AM

Reply
9 replies

Jul 27, 2025 12:05 PM in response to mr_magoo_87

Bash or Zsh...it doesn't matter. It is the Terminal settings for Full Disk Access which matters. Or it will be the scripts that will need permission (like I said Bash or Zsh doesn't matter).


FYI, with an external drive it is best to check "Ignore ownership" on the "Get Info" of the external drive.


The only thing I can think of is at some point you granted "/bin/bash" Full Disk Access for some reason and forgot about it.

Jul 27, 2025 11:56 AM in response to mr_magoo_87

mr_magoo_87 wrote:

I'm trying to switch over from bash to zsh, and one problem I have is figuring out how to get access to my external drive (my Mac's local drive is accessible). I've searched on here and elsewhere online but haven't found any solutions that work. I have read & write permissions to the disk (I access it as admin), the drive's format is APFS, so I'm not sure what else to do. I haven't made .zprofile or .zshrc files yet, nor have I migrated any bash profile code to the zsh-equivalent files yet, if that's possibly the culprit. Although, looking over my bash files, I don't have much code in the bash files other than settings for Homebrew and Python.

Any help is appreciated, I'm curious to try out zsh but this is preventing me from doing so.


I don't get it...


easy enough to change per the instructions, copy the command line and paste in terminal.app copy and paste:

chsh -s /bin/zsh



To see you current shell:

 echo $SHELL


Jul 27, 2025 07:05 PM in response to mr_magoo_87

Aha, I figured out my problem, and it's a totally dumb rookie mistake. I thought I read somewhere that in zsh you don't need to "cd" into directories compared to bash, so I thought switching directories meant typing just "<directory path>" instead of "cd <directory path>". Turns out that's not true! Problem solved, and if I find a way to delete threads I'll delete this one as it's not worth the server space to keep it.

Jul 27, 2025 07:47 PM in response to mr_magoo_87

mr_magoo_87 wrote:

Aha, I figured out my problem, and it's a totally dumb rookie mistake. I thought I read somewhere that in zsh you don't need to "cd" into directories compared to bash, so I thought switching directories meant typing just "<directory path>" instead of "cd <directory path>". Turns out that's not true! Problem solved, and if I find a way to delete threads I'll delete this one as it's not worth the server space to keep it.


As it stands—

your experience here will help others in a similar situation.


Thanks for posting your resolve.

Jul 28, 2025 09:04 PM in response to mr_magoo_87

mr_magoo_87 wrote:


thanks for your post g_wolfman for your observations and insight...

I would not have considered this; much like I could not anticipate not using the cd commnad :)



further information from the Terminal.app is available, copy & paste:

man zshoptions | more



to see list the currently active setopt options that have been changed from their default settings, you can simply copy & paste:

setopt

Granting zsh permission to external drive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.