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
1 changed files with 3 additions and 3 deletions

View File

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