civodul pushed a commit to branch master
in repository guix.

commit 2d94702ff4133606cda1e51a2c8378a8e79afb9d
Author: Ludovic Courtès <[email protected]>
Date:   Wed Jul 13 23:42:35 2016 +0200

    system: Change the shell of 'nobody' to 'nologin'.
    
    Fixes <http://bugs.gnu.org/23971>.
    Reported by Vincent Legoll <[email protected]>.
    
    * gnu/system/shadow.scm (%base-user-accounts): Add 'shell' field.  Set
    'home-directory' to "/nonexistent".
---
 gnu/system/shadow.scm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 730a9ee..593117e 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -126,7 +126,8 @@
          (name "nobody")
          (uid 65534)
          (group "nogroup")
-         (home-directory "/var/empty")
+         (shell #~(string-append #$shadow "/sbin/nologin"))
+         (home-directory "/nonexistent")
          (system? #t))))
 
 (define (default-skeletons)

Reply via email to