Bug 2476417 - RPM macro file for passwd/group paths no longer needed (and harmful)
Summary: RPM macro file for passwd/group paths no longer needed (and harmful)
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: nss-altfiles
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-12 09:48 UTC by Michal Domonkos
Modified: 2026-05-12 09:52 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)

Description Michal Domonkos 2026-05-12 09:48:46 UTC
RPM 6.1.0 [*] will do NSS lookups again by default, and so the following commit should no longer be needed (or desired, really):

commit fd9d7e81367ddfd4c619d5ffbe9dd981f2a71823 (HEAD -> rawhide, origin/rawhide, origin/main, origin/f44, origin/HEAD)
Author: Joseph Marrero Corchado <jmarrero>
Date:   Mon Feb 16 16:01:02 2026 -0500

    Add RPM macros to configure %%_passwd_path and %%_group_path
    
    Fixes user/group lookup for packages with non-root file ownership
    See: https://github.com/rpm-software-management/rpm/pull/3672

The issue with this commit is two-fold:

1. It points RPM to a possibly non-existent /usr/lib/passwd or /usr/lib/group file (it will print an error)
2. It effectively enables the altfiles NSS module regardless of whether it's actually configured in the /etc/nsswitch.conf file or not

FWIW, there's a pending RHEL backport (https://redhat.atlassian.net/browse/RHEL-140819) where I've also commented.

Reproducible: Always

Steps to Reproduce:
1. dnf install nss-altfiles
2. dnf install nginx-core
Actual Results:
[...]
error: failed to open /usr/lib/passwd for id/name lookup: No such file or directory
[...]

Expected Results:
No error. The alternate passwd/group file shouldn't be consulted here if it's non-existent.

[*] https://fedoraproject.org/wiki/Changes/RPM-6.1


Note You need to log in before you can comment on or make changes to this bug.