Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700062 - /etc/sub{g,u}id missing in stage3 - usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
Summary: /etc/sub{g,u}id missing in stage3 - usermod: /etc/subuid does not exist, you ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-14 05:36 UTC by fling
Modified: 2021-01-22 17:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fling 2019-11-14 05:36:40 UTC
Missing files causing certain usermod commands to error out.

Reproducible: Always

Steps to Reproduce:
test ~ # usermod -v 65536-10065535 -w 65536-10065535 root
usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
Comment 1 Ben Kohler gentoo-dev 2019-11-14 14:39:36 UTC
Why should it exist in stage3? Can't you create it if you need it?

I have gentoo installations 12 years old which have never had this file and still do not.
Comment 2 fling 2019-11-14 18:36:43 UTC
(In reply to Ben Kohler from comment #1)
> Why should it exist in stage3? Can't you create it if you need it?
> 
> I have gentoo installations 12 years old which have never had this file and
> still do not.

usermod from shadow-4.6 and other tools expect the files to be present.
/etc/subgid is listed next to /etc/shadow under FILES in usermod manpage which is more than a year old.
Comment 3 Ben Kohler gentoo-dev 2019-11-14 18:40:16 UTC
Yeah but the man page also says "If /etc/subuid exists" in several places.

Are other distros installing this file?  Is it empty there, or populated?
Comment 4 fling 2019-11-15 04:19:16 UTC
(In reply to Ben Kohler from comment #3)
> Yeah but the man page also says "If /etc/subuid exists" in several places.
> 
> Are other distros installing this file?  Is it empty there, or populated?

The file exists in other distros. For example in debian it comes populated.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-15 21:04:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6a87dc1d98b5f3deaeb5b43818f20e17afa79c4

commit f6a87dc1d98b5f3deaeb5b43818f20e17afa79c4
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2019-11-15 21:01:07 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2019-11-15 21:03:17 +0000

    sys-apps/shadow: 4.7-r1: create /etc/sub{g,u}id, remove split-usr
    
    Bug: https://bugs.gentoo.org/700062
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-apps/shadow/shadow-4.7-r1.ebuild | 212 +++++++++++++++++++++++++++++++++++
 1 file changed, 212 insertions(+)