[Rpm-maint] [rpm-software-management/rpm] sysusers.sh: Create /etc/login.defs if missing (PR #3207)

Florian Festi notifications at github.com
Mon Jul 15 13:28:38 UTC 2024


useradd needs both /etc/group and /etc/login.defs to work. It does chroot into a new system and then looks for these files. While this is technically correct it is a bit inconvenient for RPM. Creating etc/login.defs as an empty file make this work but still runs useradd without  proper configuration until the shadow-utils package gets installed. There isn't really anything RPM can do about that and distribution need to ahndle the situation to make installations to an empty directory with rpm --roo work.

Resolves: #3186
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/3207

-- Commit Summary --

  * sysusers.sh: Create /etc/login.defs if missing

-- File Changes --

    M scripts/sysusers.sh (1)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/3207.patch
https://github.com/rpm-software-management/rpm/pull/3207.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3207
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3207 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240715/7a800c7e/attachment.html>


More information about the Rpm-maint mailing list