system: Change the shell of 'nobody' to 'nologin'.

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".
This commit is contained in:
Ludovic Courtès 2016-07-13 23:42:35 +02:00
parent 4c7260011e
commit 2d94702ff4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -126,7 +126,8 @@ (define %base-user-accounts
(name "nobody")
(uid 65534)
(group "nogroup")
(home-directory "/var/empty")
(shell #~(string-append #$shadow "/sbin/nologin"))
(home-directory "/nonexistent")
(system? #t))))
(define (default-skeletons)