Skip to content

Commit

Permalink
nixos/update-users-groups: read access to /etc/shadow for group shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
jluttine authored and cole-h committed Mar 18, 2021
1 parent 4307699 commit 099a9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/config/update-users-groups.pl
Expand Up @@ -288,7 +288,7 @@ sub parseUser {
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";
Expand Down

0 comments on commit 099a9e8

Please sign in to comment.