forked from mirrors/nixpkgs
nixos/update-users-groups: read access to /etc/shadow for group shadow
This commit is contained in:
parent
4307699fdb
commit
099a9e809c
|
@ -288,7 +288,7 @@ foreach my $u (values %usersOut) {
|
||||||
push @shadowNew, join(":", $u->{name}, $hashedPassword, "1::::::") . "\n";
|
push @shadowNew, join(":", $u->{name}, $hashedPassword, "1::::::") . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
updateFile("/etc/shadow", \@shadowNew, 0600);
|
updateFile("/etc/shadow", \@shadowNew, 0640);
|
||||||
{
|
{
|
||||||
my $uid = getpwnam "root";
|
my $uid = getpwnam "root";
|
||||||
my $gid = getgrnam "shadow";
|
my $gid = getgrnam "shadow";
|
||||||
|
|
Loading…
Reference in a new issue