On Mon, Jan 4, 2021 at 11:34 AM Thomas Deutschmann <whi...@gentoo.org> wrote: > > On 2021-01-04 17:30, Thomas Deutschmann wrote: > > On 2021-01-04 17:28, Michał Górny 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 group: > > > usermod -aG <your user> 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 <your user> Don't use "id" to list group members. That lists groups of which a user is a member. Use getent instead: getent group portage