[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: system: Change the shell of 'nobody' to 'nologin'.
From: |
Ludovic Courtès |
Subject: |
01/02: system: Change the shell of 'nobody' to 'nologin'. |
Date: |
Wed, 13 Jul 2016 22:00:29 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit 2d94702ff4133606cda1e51a2c8378a8e79afb9d
Author: Ludovic Courtès <address@hidden>
Date: Wed Jul 13 23:42:35 2016 +0200
system: Change the shell of 'nobody' to 'nologin'.
Fixes <http://bugs.gnu.org/23971>.
Reported by Vincent Legoll <address@hidden>.
* gnu/system/shadow.scm (%base-user-accounts): Add 'shell' field. Set
'home-directory' to "/nonexistent".
---
gnu/system/shadow.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 730a9ee..593117e 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)