Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#68741 - [shadow] include and backup /etc/sub{uid,gid}

Attached to Project: Arch Linux
Opened by David Runge (dvzrv) - Wednesday, 25 November 2020, 16:10 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description: The usermod options to create subordinate uids and gids (-v/--add-subuids and -w/-add-subgids, respectively) rely on the files /etc/subuid and /etc/subgid to be present, else the usermod errors out with:

```
usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
```

The files should be created (empty) as part of the shadow package and be tracked in the backup array to not be overwritten.

Other distributions even go as far as to auto-create subuids and subgids for newly created users (to my knowledge this is the case for e.g. fedora), which can be quite useful. However, I don't know how exactly that is achieved (probably the shadow package can be configured to set defaults for user-creation for this).

Additional info:
* package version: 4.8.1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

E.g. trying to configure podman [1] if no subuids/subgids have been configured manually yet:

usermod --add-subuids 165536-169631 --add-subgids 165536-169631 <user>


[1] https://wiki.archlinux.org/index.php/Podman#Configuration
This task depends upon

Comment by Giancarlo Razzolini (grazzolini) - Thursday, 26 November 2020, 11:24 GMT
Is this something that we could report upstream?

Loading...