summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-02 23:23:26 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-02 23:35:15 -0400
commit1d0158ab9036cff7737cbfb1678f876ae67c4ac2 (patch)
tree1491c996ee67e2c3d8f7288be334527a91f97c91
parent65cdd4287b62d69bff6526f2d05536336c1d4cb3 (diff)
downloadguix-1d0158ab9036cff7737cbfb1678f876ae67c4ac2.tar.gz
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.
-rw-r--r--gnu/services/vnc.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/services/vnc.scm b/gnu/services/vnc.scm
index 15c3c14fee..d57cf51af2 100644
--- a/gnu/services/vnc.scm
+++ b/gnu/services/vnc.scm
@@ -17,6 +17,7 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu services vnc)
+  #:use-module (gnu packages admin)
   #:use-module (gnu packages vnc)
   #:use-module ((gnu services) #:hide (delete))
   #:use-module (gnu system shadow)
@@ -191,7 +192,9 @@ CONFIG, a <xvnc-configuration> object."
          (name "xvnc")
          (group "xvnc")
          (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)
   "Return a <shepherd-service> for Xvnc with CONFIG."