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
nixos/update-users-groups: /etc/shadow owned by root:shadow #98676
Conversation
FWIW, the problem was that the script would say chown getpwnam "root", getgrnam "shadow", "/etc/shadow"; So, for some reason, |
062d139
to
d7233d4
Compare
Ah, I think I found my problem: if I use Now this can be totally in Perl :) EDIT: I put it in a scope because I saw |
d7233d4
to
ffae883
Compare
This might be because
As you point out, the patch with
ADD: Scoping |
@ofborg eval (I think I broke it by force-pushing too fast :P) |
ffae883
to
937359f
Compare
@ofborg test installer.simple |
Hi! I just encountered the issue that this PR solved when I was using a bit old nixpkgs version. I now used this patch to fix the issue, thanks! However, I'm wondering why the permissions are still kept at |
Just an oversight. I'd happily accept a PR fixing that :) |
PR opened: #116644 |
Motivation for this change
Closes #93580.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)I tried using Perl'schown
withgetpwnam
/getgrnam
, butgetpwnam "root"
andgetgrnam "shadow"
didn't work... So, I had to usesystem
and call out to thechown
binary.cc @NixOS/nixos-release-managers (since this is on the 20.09 blockers list).