Skip to content
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

sudo: /private/etc/sudoers.d/10-nix-darwin-extra-config is owned by uid 501, should be 0 #867

Open
PlumpMath opened this issue Feb 12, 2024 · 3 comments

Comments

@PlumpMath
Copy link

hello.

sudo: /private/etc/sudoers.d/10-nix-darwin-extra-config is owned by uid 501, should be 0

How can I avoid typing commands like the following? I'm just managing macOS installed on an external hard drive. This issue is related to Apple and money. 😅

sudo chown -R root:wheel /nix/var/nix/db

sudo chown -R $USER:staff /nix/store

@Samasaur1
Copy link
Contributor

#888 should mean that that file won't exist unless you have the security.sudo.extraConfig option set.

But it never should have been owned by you instead of root anyway, since it uses environment.etc internally. Sounds like an issue with external drives rather than this specific file

@PlumpMath
Copy link
Author

PlumpMath commented Mar 1, 2024

The priority for Macs is to get rid of the hard drive.
NixOS/nix#3435 (comment)

/private/etc/sudoers.d/10-nix-darwin-extra-config
/etc/sudoers.d/10-nix-darwin-extra-config
?

In both problematic and non-problematic Macs, the two files do not exist. If I were in this situation, what should I add to the security.sudo.extraConfig option to resolve the issue? Reinstalling does not fix the problem, as it persists every time.

@Samasaur1
Copy link
Contributor

I'm not exactly sure what your issue is, but if you update nix-darwin and don't have the security.sudo.extraConfig set to anything, that file should disappear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants