summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-09-10 21:40:46 +0200
committerLudovic Courtès <ludo@gnu.org>2017-09-10 23:34:29 +0200
commit903ae630a0ae0df9fabd5ebab7d44577d6e7d0fc (patch)
tree88c97cff926417a041db48978502683fddbf87eb /gnu
parent4aafce22ab74007c69aecc474816d83e64d22646 (diff)
downloadguix-903ae630a0ae0df9fabd5ebab7d44577d6e7d0fc.tar.gz
install: Add 'passwd' to $PATH.
Suggested by Jan Nieuwenhuizen.

* gnu/system/install.scm (installation-os)[setuid-programs]: Add 'passwd'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/install.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 7f6ffe9582..5c0aaed18a 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -337,9 +337,9 @@ Use Alt-F2 for documentation.
     (issue %issue)
     (services %installation-services)
 
-    ;; We don't need setuid programs so pass the empty list so we don't pull
-    ;; additional programs here.
-    (setuid-programs '())
+    ;; We don't need setuid programs, except for 'passwd', which can be handy
+    ;; if one is to allow remote SSH login to the machine being installed.
+    (setuid-programs (list (file-append shadow "/bin/passwd")))
 
     (pam-services
      ;; Explicitly allow for empty passwords.