Gentoo Archives: gentoo-dev

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] acct-user.eclass: don't modify existing user by default
Date: Mon, 04 Jan 2021 16:34:12
Message-Id: 14fba9dd-ac0f-9510-6970-eed430c26687@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] acct-user.eclass: don't modify existing user by default by Thomas Deutschmann
1 On 2021-01-04 17:30, Thomas Deutschmann wrote:
2 > On 2021-01-04 17:28, Michał Górny wrote:
3 >> It must be a bug in your version of the eclass.  I've just reemerged
4 >> acct-group/wheel and to*my great surprise*  I'm still there.  How
5 >> unexpected!
6 >
7 > That's why I wrote
8 >
9 > >  (luckily groups like wheel don't have users...)
10 >
11 > I meant that there is no acct-user/wheel because otherwise this group
12 > would get cleaned (reset), too.
13
14 Best example is portage. Follow handbook. Add your user to portage's group:
15
16 > usermod -aG <your user> portage
17
18 Now re-emerge acct-user/portage...
19
20 > # usermod -aG thomas portage
21 > # id portage
22 > uid=250(portage) gid=250(portage) groups=250(portage),1000(thomas)
23 > # emerge -a1 acct-user/portage
24 >
25 > These are the packages that would be merged, in order:
26 >
27 > Calculating dependencies... done!
28 > [ebuild R ] acct-user/portage-0::gentoo 0 KiB
29 >
30 > Total: 1 package (1 reinstall), Size of downloads: 0 KiB
31 >
32 > Would you like to merge these packages? [Yes/No] y
33 >>>> Verifying ebuild manifests
34 >>>> Running pre-merge checks for acct-user/portage-0
35 >>>> Emerging (1 of 1) acct-user/portage-0::gentoo
36 >>>> Installing (1 of 1) acct-user/portage-0::gentoo
37 >>>> Jobs: 1 of 1 complete
38 >>>> Auto-cleaning packages...
39 >
40 >>>> No outdated packages were found on your system.
41 >
42 > * GNU info directory index is up-to-date.
43 > # id portage
44 > uid=250(portage) gid=250(portage) groups=250(portage)
45
46
47 --
48 Regards,
49 Thomas Deutschmann / Gentoo Linux Developer
50 fpr: C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature

Replies