Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [PATCH] acct-user.eclass: don't modify existing user by default
Date: Mon, 04 Jan 2021 18:20:57
Message-Id: c33741eaf67e3a18629b7e3bd5f083ddd07eba3c.camel@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [PATCH] acct-user.eclass: don't modify existing user by default by Michael Orlitzky
1 On Mon, 2021-01-04 at 13:07 -0500, Michael Orlitzky wrote:
2 > On 1/4/21 11:45 AM, James Cloos wrote:
3 > > > > > > > "RHJ" == Robin H Johnson <robbat2@g.o> writes:
4 > >
5 > > RHJ> The best I can come up with at the moment, is that any packaging should
6 > > RHJ> detect if there are user modifications, and provide control to users
7 > > RHJ> based on that fact.
8 > >
9 > > Exactly. Akin to etc-update.
10 > >
11 >
12 > We could implement this with something like an /etc/users.d directory
13 > that would be populated with entries by either the admin or package
14 > manager with CONFIG_PROTECT enabled. Then the system database would be
15 > updated by running something like "users-update" (cf. env-update). The
16 > essential problem that we need to work around is that e.g. /etc/passwd
17 > is "owned" by multiple system packages.
18
19 Most importantly, it doesn't resolve the core issue of 'we need to
20 update home before merging reverse dependencies'.
21
22 --
23 Best regards,
24 Michał Górny

Replies