diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-03-08 00:29:20 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-03-08 00:29:20 +0100 |
commit | 9ea35eae7a5aee9159735ca662b65c8552aec8dc (patch) | |
tree | 34fe13696da48bff988efd7dd88ef0f15b7c7185 /nixos/modules/config/update-users-groups.pl | |
parent | e206d5ab63b64b377c22488ac0b33481bef9bf21 (diff) | |
download | nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.gz nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.bz2 nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.lz nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.xz nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.zst nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.zip |
nixos/users-groups: chown home on createHome
Fixes #23619.
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 cbbe216e5a17..4ca8a83554ad 100644 --- a/nixos/modules/config/update-users-groups.pl +++ b/nixos/modules/config/update-users-groups.pl @@ -177,7 +177,7 @@ foreach my $u (@{$spec->{users}}) { } # Create a home directory. - if ($u->{createHome} && ! -e $u->{home}) { + if ($u->{createHome}) { make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home}; chown $u->{uid}, $u->{gid}, $u->{home}; } |