Bug#1100924: systemd-sysusers module creates unreadable shadow and gsha
From Anton Lundin@21:1/5 to All on Thu Mar 20 15:20:02 2025
Package: dracut-core
Version: 106-5
When building a initramfs with dracut as a non-root-user the cpio step
fails:
cpio: etc/gshadow: Cannot open: Permission denied
cpio: etc/shadow: Cannot open: Permission denied
The systemd-sysusers step creates 000 shadow and gshadow files, which
causes a non-root-user to fail to try to read those files, failing the
whole dracut initramfs building.
This could be considered a bug in systemd-sysusers, but can easlily be
worked around by: