diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2021-03-17 19:17:51 +0200 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2021-03-18 00:08:35 -0700 |
commit | 099a9e809c493a6bd482d5050ff3259035cb16fa (patch) | |
tree | 5bf9be0e32740f598131af1f29f4201d1a7cb13c /nixos/modules/config/update-users-groups.pl | |
parent | 4307699fdbdd687c22548cd5eed381a690edc93f (diff) | |
download | nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar.gz nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar.bz2 nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar.lz nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar.xz nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.tar.zst nixpkgs-099a9e809c493a6bd482d5050ff3259035cb16fa.zip |
nixos/update-users-groups: read access to /etc/shadow for group shadow
Diffstat (limited to 'nixos/modules/config/update-users-groups.pl')
-rw-r--r-- | nixos/modules/config/update-users-groups.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/update-users-groups.pl b/nixos/modules/config/update-users-groups.pl index 44040217b02..bef08dc4020 100644 --- a/nixos/modules/config/update-users-groups.pl +++ b/nixos/modules/config/update-users-groups.pl @@ -288,7 +288,7 @@ foreach my $u (values %usersOut) { push @shadowNew, join(":", $u->{name}, $hashedPassword, "1::::::") . "\n"; } -updateFile("/etc/shadow", \@shadowNew, 0600); +updateFile("/etc/shadow", \@shadowNew, 0640); { my $uid = getpwnam "root"; my $gid = getgrnam "shadow"; |