all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brian Cully via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Lars-Dominik Braun <lars@6xq.net>
Cc: kiasoc5 <kiasoc5@disroot.org>, guix-devel@gnu.org
Subject: Re: Why is greetd greeter user in so many groups?
Date: Thu, 23 Jun 2022 08:15:50 -0400	[thread overview]
Message-ID: <87bkujvagl.fsf@ditto.jhoto.spork.org> (raw)
In-Reply-To: <YrRDXIhObr6vN4Mw@philomena>


Lars-Dominik Braun <lars@6xq.net> writes:

> oh, I guess they are written by greetd, not the greeter 
> itself. Does
> greetd work without the groups in questions? (I don’t have 
> access to
> a powerful machine right now to test it.)

Since greetd is currently being run as root, it doesn't need any 
extra group membership.

I'm using the following patch with no observed change in behavior:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index d58afb27e3..e9be2b9df1 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -2912,8 +2912,11 @@ (define 
(make-greetd-terminal-configuration-file config)
 (define %greetd-accounts
   (list (user-account
          (name "greeter")
-         (group "wheel")
-         (supplementary-groups '("users" "tty" "input" "video" 
          "audio"))
+         (group "greeter")
+         (supplementary-groups '())
+         (system? #t))
+        (user-group
+         (name "greeter")
          (system? #t))))
 
 (define %greetd-file-systems
--8<---------------cut here---------------end--------------->8---

-bjc


  reply	other threads:[~2022-06-23 12:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21  4:33 Why is greetd greeter user in so many groups? kiasoc5
2022-06-22 14:17 ` Lars-Dominik Braun
2022-06-22 14:24   ` Brian Cully via Development of GNU Guix and the GNU System distribution.
2022-06-23 10:41     ` Lars-Dominik Braun
2022-06-23 12:15       ` Brian Cully via Development of GNU Guix and the GNU System distribution. [this message]
2022-06-29  7:41         ` Lars-Dominik Braun
2022-06-29 17:59           ` kiasoc5
2022-06-30  7:48             ` Lars-Dominik Braun
2022-08-02  8:44               ` muradm
2022-08-04  8:56                 ` Ludovic Courtès
2022-08-04 10:04                   ` muradm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkujvagl.fsf@ditto.jhoto.spork.org \
    --to=guix-devel@gnu.org \
    --cc=bjc@spork.org \
    --cc=kiasoc5@disroot.org \
    --cc=lars@6xq.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.