Gentoo Archives: gentoo-portage-dev

From: "M. J. Everitt" <m.j.everitt@×××.org>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] portage user not listed in /etc/shadow ?
Date: Wed, 16 Jan 2019 17:25:46
Message-Id: b8460038-cad9-8e95-9372-91fb2879f7d5@iee.org
In Reply to: Re: [gentoo-portage-dev] portage user not listed in /etc/shadow ? by Joakim Tjernlund
1 On 16/01/19 12:59, Joakim Tjernlund wrote:
2 > On Wed, 2019-01-16 at 12:20 +0000, M. J. Everitt wrote:
3 >> On 16/01/19 11:58, Joakim Tjernlund wrote:
4 >>> How come portage isn't in shadow, only in passwd ?
5 >>> Seems wrong to me.
6 >>>
7 >>> Jocke
8 >> Because the portage user never logs on .. hence has no password. That said,
9 > That goes for evry other system account too but these are in shadow.
10 >
11 >> it does seem an odd situation, since even users with no password do tend to
12 >> appear in /etc/shadow .. perhaps it was/is never "properly" added as a user
13 >> ....
14 > I think/hope so. Now passwd looks like so:
15 > portage:x:250:250:portage:/var/tmp/portage:/bin/false
16 > This looks like a shadow account. Because of the missing entry passwd
17 > thinks this is a normal account:
18 > # > passwd -S portage
19 > portage P
20 > as opposed to:
21 > # > passwd -S daemon
22 > daemon L 10/28/1996 0 -1 -1 -1
23 >
24 > Jocke
25 With the help of some devs, I have drilled this down to commit
26 https://gitweb.gentoo.org/proj/baselayout.git/commit/share.Linux/shadow?id=5ee3c95d2086e626247640ca35cf2da78c4c9846
27 in baselayout in 2016.
28
29 Some of my systems mysteriously (but predictably) are missing portage in
30 /etc/shadow as you describe, but these are prior to the baselayout change
31 above. Many have it as the commit suggests also. I suspect there may not
32 have been an upgrade path which added it between versions however, unless
33 it was pulled in via CONFIG_PROTECT somehow
34
35 Bug https://bugs.gentoo.org/show_bug.cgi?id=521970 is also referenced in
36 that commit.
37
38 Hope that answers your question (and my curiosity!).
39 Regards,
40
41 veremitz/Michael.

Attachments

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

Replies

Subject Author
Re: [gentoo-portage-dev] portage user not listed in /etc/shadow ? Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>