1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-27 04:30:32 +02:00

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

View File

@@ -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)