From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 754A61382C5 for ; Mon, 4 Jan 2021 16:54:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 945B5E09E2; Mon, 4 Jan 2021 16:54:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 58453E09D1 for ; Mon, 4 Jan 2021 16:54:47 +0000 (UTC) Received: by mail-il1-f177.google.com with SMTP id e7so22191244ile.7 for ; Mon, 04 Jan 2021 08:54:46 -0800 (PST) X-Gm-Message-State: AOAM531qDJpJ2ZZUyN0dQpsTn3MmRR+Nu4M1boTCU4vsVZa1cCVJ9/IR nNrE9p5X8smYmI+pNGHRMh6fEvrOPQV2SbYE424= X-Google-Smtp-Source: ABdhPJwCK9ZHgzxyuI4WyPaeoz9HYvsp43cUMbBAGJkE2OB/SlfmDOw7UxnDpgsGcEkh7GXqAKC8LriOk6s5AaqQPP0= X-Received: by 2002:a92:845c:: with SMTP id l89mr70823449ild.114.1609779284330; Mon, 04 Jan 2021 08:54:44 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20210104013558.20072-1-whissi@gentoo.org> <60fac781-e080-999c-e83e-c657d5b89d18@gentoo.org> <4ca9ea6d4b2c2f0f7c29319d2c0015e2fec2b773.camel@gentoo.org> <6876f32c-5ea8-5c99-41c1-7c8963f5a976@gentoo.org> <5f23b96b-0c35-f564-e5a0-e6eb5abb387b@gentoo.org> <14fba9dd-ac0f-9510-6970-eed430c26687@gentoo.org> In-Reply-To: <14fba9dd-ac0f-9510-6970-eed430c26687@gentoo.org> From: Mike Gilbert Date: Mon, 4 Jan 2021 11:54:33 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] [PATCH] acct-user.eclass: don't modify existing user by default To: Gentoo Dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6f200a0c-e221-4bc1-813f-37d7074be329 X-Archives-Hash: 4440b42a9abaf2ac5de800835fd4c388 On Mon, Jan 4, 2021 at 11:34 AM Thomas Deutschmann wrot= e: > > On 2021-01-04 17:30, Thomas Deutschmann wrote: > > On 2021-01-04 17:28, Micha=C5=82 G=C3=B3rny wrote: > >> It must be a bug in your version of the eclass. I've just reemerged > >> acct-group/wheel and to*my great surprise* I'm still there. How > >> unexpected! > > > > That's why I wrote > > > > > (luckily groups like wheel don't have users...) > > > > I meant that there is no acct-user/wheel because otherwise this group > > would get cleaned (reset), too. > > Best example is portage. Follow handbook. Add your user to portage's grou= p: > > > usermod -aG portage I don't see any mention of usermod in the handbook, so I'm not sure where this came from. As mgorny pointed out, you are invoking usermod incorrectly. You want this instead: usermod -aG portage Don't use "id" to list group members. That lists groups of which a user is a member. Use getent instead: getent group portage