Skip to content
Snippets Groups Projects
Unverified Commit 2d94702f authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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".
parent 4c726001
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,8 @@ (define %base-user-accounts ...@@ -126,7 +126,8 @@ (define %base-user-accounts
(name "nobody") (name "nobody")
(uid 65534) (uid 65534)
(group "nogroup") (group "nogroup")
(home-directory "/var/empty") (shell #~(string-append #$shadow "/sbin/nologin"))
(home-directory "/nonexistent")
(system? #t)))) (system? #t))))
(define (default-skeletons) (define (default-skeletons)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment