Skip to content

System users are shipped in /usr/etc/passwd instead of /lib/passwd

Affected images versions

  • NA

Unaffected images versions

  • NA

Steps to reproduce

$ ls /lib/passwd
ls: cannot access /lib/passwd: No such file or directory
$ grep root /usr/etc/passwd
root:x:0:0:root:/root:/bin/ash

Expected result

Users with UID>=1000 should not be

The ostree-convert-from-debian is supposed to split UID<1000 users into /lib/passwd and everything else into /usr/etc/passwd, but the call to split_passwd_files () is commented out.

Actual result

/lib/passwd does not exist and /usr/etc/passwd ships the UID<1000 users.

Impact of bug

It's something that has the potential to cause issues but which in practice we do not hit them at the moment.

Management data

This section is for management only, it should be the last one in the description.

Phabricator link: https://phabricator.apertis.org/T5748

Edited by Balasubramanian Raju