aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-07-13 23:42:35 +0200
committerLudovic Courtès <ludo@gnu.org>2016-07-13 23:42:35 +0200
commit2d94702ff4133606cda1e51a2c8378a8e79afb9d (patch)
treebb62c3d23bcd0ac13f23c1a71a00efa99f393f26 /gnu
parent4c7260011e219eb3ebf5da976ab107dbd5997829 (diff)
downloadpatches-2d94702ff4133606cda1e51a2c8378a8e79afb9d.tar
patches-2d94702ff4133606cda1e51a2c8378a8e79afb9d.tar.gz
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".
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/shadow.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 730a9ee091..593117ef36 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)