-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS: Newly created zshenv doesn't have correct permissions #254
Comments
Thanks for this report! It does look like we're not setting it right, here's the zsh files: nix-installer/src/action/common/configure_shell_profile.rs Lines 69 to 76 in c150d60
compared to the fish ones nix-installer/src/action/common/configure_shell_profile.rs Lines 110 to 119 in c150d60
I'm working on a fix. |
It's similar for the file
This is just after nix-install completed. You can see that it created zshenv, bash.bashrc, and updated the 'main' bashrc. The former two are mode 600, however. |
I'm running through the zero to nix guide and had an issue during install step. After installation, no newly created Terminal windows knew what the
nix
command was (zsh: command not found: nix
)I tracked the issue down to the fact that the custom nix installer created a new zsh config file at
/etc/zshenv
(or/private/etc/zshenv
) that zsh is supposed to read. But the file was created with just r/w permissions for the root user:If I
sudo chmod go+r /etc/zshenv
it fixes the issue, and I can runnix
in a new Terminal window.The text was updated successfully, but these errors were encountered: