diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm index e2d1734367..53844c0990 100644 --- a/gnu/build/activation.scm +++ b/gnu/build/activation.scm @@ -141,12 +141,13 @@ and bits are set according to the default behaviour of 'mkdir'." #:key (directory %skeleton-directory) uid gid) - "Copy the account skeletons from DIRECTORY to HOME. When UID is an integer, -make it the owner of all the files created except the home directory; likewise -for GID." - (define (set-owner file) + "Copy the account skeletons from DIRECTORY to HOME and make them writable. +When UID is an integer, make it the owner of all the files created except the +home directory; likewise for GID." + (define (set-permission file) (when (or uid gid) - (chown file (or uid -1) (or gid -1)))) + (chown file (or uid -1) (or gid -1))) + (make-file-writable file)) (let ((files (scandir directory (negate dot-or-dot-dot?) string