Skip to content

usermod flag to write subuid and subgid entries by UID rather than username #1554

@jcpunk

Description

@jcpunk

From the subuid manpage:

When large number of entries (10000-100000 or more) are defined in /etc/subuid, parsing performance penalty will become noticeable. In this case it is recommended to use UIDs instead of login names. Benchmarks have shown speed-ups up to 20x.

It would be helpful if there was something I could set in /etc/login.defs or with usermod to write out subids with their UID instead of the username.

I suspect this would be of value to useradd as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions