mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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:
parent
ba926e3534
commit
8bb76f3d44
1 changed files with 3 additions and 3 deletions
|
@ -298,9 +298,9 @@ (define ensure-user-home
|
||||||
(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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue