From 9ea35eae7a5aee9159735ca662b65c8552aec8dc Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 8 Mar 2017 00:29:20 +0100 Subject: [PATCH] nixos/users-groups: chown home on createHome Fixes #23619. --- nixos/modules/config/update-users-groups.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; }