On MacOS, what are the default and preferred permissions for ~/.bash
and ~/.bash_profile
config profiles?
This guide shows 700 as preferred.
To view permission for a file: private stat -f "%Lp %N" ~/.bashrc
bashconfiguration-profilespermission
On MacOS, what are the default and preferred permissions for ~/.bash
and ~/.bash_profile
config profiles?
This guide shows 700 as preferred.
To view permission for a file: private stat -f "%Lp %N" ~/.bashrc
Best Answer
bashrc
andbash_profile
are read bybash
and do not require the execute bit to be set. Nor do either require the execute bit set when sourcing the file in your current bash session. That said, an octal representation of600
would be my choice.The default permissions set on a file is governed by
umask
.