system: Change the shell of 'nobody' to 'nologin'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 13 Jul 2016 21:42:35 +0000 (23:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 13 Jul 2016 21:42:35 +0000 (23:42 +0200)
Fixes <http://bugs.gnu.org/23971>.
Reported by Vincent Legoll <vincent.legoll@gmail.com>.

* gnu/system/shadow.scm (%base-user-accounts): Add 'shell' field.  Set
'home-directory' to "/nonexistent".

gnu/system/shadow.scm

index 730a9ee..593117e 100644 (file)
          (name "nobody")
          (uid 65534)
          (group "nogroup")
-         (home-directory "/var/empty")
+         (shell #~(string-append #$shadow "/sbin/nologin"))
+         (home-directory "/nonexistent")
          (system? #t))))
 
 (define (default-skeletons)