activation: Make home directories #o700 by default.

Until now they'd be #o755, except for /root, which is treated specially
in (gnu build install).

* gnu/build/activation.scm (activate-user-home): Chmod HOME to #o700.
Remove redundant 'unless system?'.
This commit is contained in:
Ludovic Courtès 2019-03-04 13:32:36 +01:00
parent ba926e3534
commit 8bb76f3d44
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -298,9 +298,9 @@ (define ensure-user-home
(gid (passwd:gid pw)))
(mkdir-p home)
(chown home uid gid)
(unless system?
(copy-account-skeletons home
#:uid uid #:gid gid)))))))
(chmod home #o700)
(copy-account-skeletons home
#:uid uid #:gid gid))))))
(for-each ensure-user-home users))