From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KBzmB0BctGKrtQAAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 14:27:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WH/vBkBctGJIQwEAG6o9tA (envelope-from ) for ; Thu, 23 Jun 2022 14:27:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ACFF22EEBE for ; Thu, 23 Jun 2022 14:27:43 +0200 (CEST) Received: from localhost ([::1]:48968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4Lvy-0004er-Lq for larch@yhetil.org; Thu, 23 Jun 2022 08:27:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Loh-0008JH-BV for guix-devel@gnu.org; Thu, 23 Jun 2022 08:20:11 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:61117 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Lof-0001Mo-Sm for guix-devel@gnu.org; Thu, 23 Jun 2022 08:20:11 -0400 Received: from ditto (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id 632F23ACB; Thu, 23 Jun 2022 08:19:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1655986778; bh=DN01L1stY2kww+CwZcf4DTKlWOB42moB4LPconqQFp4=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=kUaBFz77Hdxq5ZAl3VeusPz+zd+B6s/FGqFgKs9YbbJmEpgnKNM3DTlaQrMiEkUwV Yml89s3JpInzhAZ1jD0sNaHayi+EgopTbBEvU/sAhyRuFg+kNxk4t/8e77uORaemfr pkXU2sEtYYnjLyaOPNSuRemz5ZUp6FZkzuN9Fcm4= References: <20220621043327.21e0d15b@aria> <87fsjwvkgg.fsf@ditto.jhoto.spork.org> User-agent: mu4e 1.6.11; emacs 28.1 To: Lars-Dominik Braun Cc: kiasoc5 , guix-devel@gnu.org Subject: Re: Why is greetd greeter user in so many groups? Date: Thu, 23 Jun 2022 08:15:50 -0400 In-reply-to: Message-ID: <87bkujvagl.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" Reply-to: Brian Cully From: Brian Cully via "Development of GNU Guix and the GNU System distribution." X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655987263; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=F7WHN9xJ77bfoa7oepbPhhLxsbc7aAHA9OMyUe0IWss=; b=A7+Jqw3qWvX4IUOBIpi/SaO/xUCGnmizskGP+xhUqrgIFshJJ80YuTaznVgvHbzv7FLCxL 1aNEcCj+pgmqJYrLvHXSuwCx/3KxCQ8vfSA/bs9lQwCTXgqPg4QUk0aZT2FzpDGMVkmB4Y 6LlbmryyvgNwk0ifvW5YZCcVL/R9e9Z/y3oE+O/zh4w6FkhNWpVesWFwHX/NxUL7MpxSOo 3Hgu5zFfHzjg/G+o/IcFVRo9wJuN8C2hooCRh+GkAXT7WPVA0fWA1l2VkH4FHiO0tlzQ2h Y3PndiJdW6R+XQXc4AlDG3FZ4Vs8PKhi6m491BOcdotMDTRbLKjWMP+vy0FP3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655987263; a=rsa-sha256; cv=none; b=VQ5LNbSAtRYBgDTPE5ZVkB3oC8aWtcYD6etmVCrlZE5oFjUe/I0yxAESJ0B03TYsvv5+j7 wIJmVswLbL6eHHYlaxFZIJVLvHWhyWj8fgKTdYvFs0JqHKUuPmgSBr1AvfTbgMx4LebJCx qV5WOrFGw53FUaCPdbOrj4xLktHDQJag+6pgAvxFEscG9gNmW0SBiP1sKPCd6K9hnPtvyF HdNEWh21aahKGIpbb43eAXkQvrWBzjCRfa+uCtx9HzMZy4log2JrN2NtF/JMZscsryvKCI x1+ABjB6QVb6CbKtpxApVYTf7aqHvCMErGz1CCFWJH2WtbldJeBKlc82tz7Apw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=kUaBFz77; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=kUaBFz77; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ACFF22EEBE X-Spam-Score: -2.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: P7BzdDIqbKW+ Lars-Dominik Braun writes: > oh, I guess they are written by greetd, not the greeter=20 > itself. Does > greetd work without the groups in questions? (I don=E2=80=99t have=20 > access to > a powerful machine right now to test it.) Since greetd is currently being run as root, it doesn't need any=20 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=20 (make-greetd-terminal-configuration-file config) (define %greetd-accounts (list (user-account (name "greeter") - (group "wheel") - (supplementary-groups '("users" "tty" "input" "video"=20 "audio")) + (group "greeter") + (supplementary-groups '()) + (system? #t)) + (user-group + (name "greeter") (system? #t)))) =20 (define %greetd-file-systems --8<---------------cut here---------------end--------------->8--- -bjc