mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: xvnc: Do not create a regular HOME directory for xvnc user.
* gnu/services/vnc.scm (%xvnc-accounts) [home-directory]: Define as /var/empty. [shell]: Set to nologin, for good measures.
This commit is contained in:
parent
65cdd4287b
commit
1d0158ab90
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
(define-module (gnu services vnc)
|
(define-module (gnu services vnc)
|
||||||
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages vnc)
|
#:use-module (gnu packages vnc)
|
||||||
#:use-module ((gnu services) #:hide (delete))
|
#:use-module ((gnu services) #:hide (delete))
|
||||||
#:use-module (gnu system shadow)
|
#:use-module (gnu system shadow)
|
||||||
|
@ -191,7 +192,9 @@ (define %xvnc-accounts
|
||||||
(name "xvnc")
|
(name "xvnc")
|
||||||
(group "xvnc")
|
(group "xvnc")
|
||||||
(system? #t)
|
(system? #t)
|
||||||
(comment "User for Xvnc server"))))
|
(comment "User for Xvnc server")
|
||||||
|
(home-directory "/var/empty")
|
||||||
|
(shell (file-append shadow "/sbin/nologin")))))
|
||||||
|
|
||||||
(define (xvnc-shepherd-service config)
|
(define (xvnc-shepherd-service config)
|
||||||
"Return a <shepherd-service> for Xvnc with CONFIG."
|
"Return a <shepherd-service> for Xvnc with CONFIG."
|
||||||
|
|
Loading…
Reference in a new issue