FS#76549 - [filesystem] Remove passwd, shadow, group, gshadow files overwritten by sysusers

Attached to Project: Arch Linux
Opened by pyfisch (pyfisch) - Sunday, 13 November 2022, 14:55 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 15 November 2022, 21:25 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

These files are immediately overwritten by systemd-sysusers (invoked by the pacman hook and on bootup).


Additional info:
* package version(s): 2022.10.18-1

A diff is attached.
   diff (4.9 KiB)
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 15 November 2022, 21:25 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See comments
Comment by Doug Newgard (Scimmia) - Sunday, 13 November 2022, 15:20 GMT
No they aren't. They're added to, not overwritten.
Comment by pyfisch (pyfisch) - Tuesday, 15 November 2022, 21:24 GMT
  • Field changed: Percent Complete (100% → 0%)
Although Scimmia is technically correct, the resulting files (passwd, shadow, group) are functionally the same.
gshadow isn't created by sysusers, so maybe keep it?

btw this is a feature request, not a bug report
Comment by Toolybird (Toolybird) - Tuesday, 15 November 2022, 21:25 GMT
But it won't work in all situations. Think about various container and VM creation scenarios where preparation happens before booting and therefore "systemd-sysusers.service" hasn't had a chance to kick in yet.

Loading...