Skip to content

Commit

Permalink
nixos/users-groups: chown home on createHome
Browse files Browse the repository at this point in the history
Fixes #23619.
  • Loading branch information
fpletz committed Mar 7, 2017
1 parent e206d5a commit 9ea35ea
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 @@ -177,7 +177,7 @@ sub parseUser {
}

# 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};
}
Expand Down

0 comments on commit 9ea35ea

Please sign in to comment.