groupsfile is ignored when any entry has id < 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libnss-extrausers (Debian) |
New
|
Undecided
|
Unassigned | ||
libnss-extrausers (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Binary package hint: libnss-extrausers
If any /var/lib/
The following file works fine, the entries appear in 'getent group' output.
extra0:x:500
extra1:x:501
This file however is not read properly, the entries are missing in output.
extra0:x:499
extra1:x:501
The system in question for the original report was Ubuntu 10.04, libc6 version is 2.13-0ubuntu13, but it also happens in Jammy.
[Test plan]
* install the libnss-extrausers package
* edit the /etc/nsswitch.conf file, and modify the "group:" entry to include into it "compat extrausers". For example, it the entry didn't exist, it should be added as:
group: compat extrausers
; instead, if it already existed as, for example, "group: files systemd", then add that at the end, thus:
group: files systemd compat extrausers
* edit the /var/lib/
test1:x:1008:
(previously ensuring that there is neither group test1, nor gid 1008 in the /etc/group file)
* exit the editor and type
getent group |grep test
it should show the previous entry.
* edit again the /var/lib/
test2:x:496:
(again, ensure that there is neither group test2, nor gid 496 in the /etc/group file)
* exit the editor and type again:
getent group |grep test
[Expected results]
Both "test1:x:1008:" and "test2:x:496:" entries should be shown. Instead, if the package is buggy, no entry will be shown.
[Where problems could occur]
An incorrect set of access permissions for the /var/lib/
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.