~ruther/guix-local

2d94702ff4133606cda1e51a2c8378a8e79afb9d — Ludovic Courtès 9 years ago 4c72600
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".
1 files changed, 2 insertions(+), 1 deletions(-)

M gnu/system/shadow.scm
M gnu/system/shadow.scm => gnu/system/shadow.scm +2 -1
@@ 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)