Create /home with the right permissions
Without this, it will be created with 700 permissions.
This commit is contained in:
parent
9e8cf40c7e
commit
9fc786c3a4
|
@ -529,12 +529,13 @@ in {
|
|||
|
||||
system.activationScripts.users = stringAfter [ "stdio" ]
|
||||
''
|
||||
install -m 0700 -d /root
|
||||
install -m 0755 -d /home
|
||||
|
||||
${pkgs.perl}/bin/perl -w \
|
||||
-I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl \
|
||||
-I${pkgs.perlPackages.JSON}/lib/perl5/site_perl \
|
||||
${./update-users-groups.pl} ${spec}
|
||||
|
||||
install -m 0700 -d /root
|
||||
'';
|
||||
|
||||
# for backwards compatibility
|
||||
|
|
Loading…
Reference in a new issue