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
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.
(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.
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?
(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.
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(+)