FS#62467 - [ceph] should(?) remove users upon package removal

Attached to Project: Community Packages
Opened by Erich Eckner (deepthought) - Thursday, 25 April 2019, 06:11 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 25 April 2019, 06:20 GMT
Task Type Bug Report
Category Packages
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:

ceph.sysusers takes care of adding ceph as system user upon installation.
However, this user is not removed when the package gets removed. This is annoying if ceph gets installed as a build dependency for another package - once the other package is built and ceph is uninstalled, shadow.service will (rightfully) complain:

user 'ceph': directory '/run/ceph' does not exist

I asked in #archlinux about a similar situation for another package (from the packager's point of view):

deep42thought: Hi, what's the intended way for packagers to remove users created by systemd-sysusers? (link: https://www.archlinux.org/todo/switch-to-systemd-sysusers/ )
jelle: deep42thought: we don't remove users when removing a package
deep42thought: jelle: but assume, I have a package which installs a user with a home directory also installed by this package
deep42thought: once I remove the package, shadow.service complains
deep42thought: because the user still exists but the home is gone
jelle: deep42thought: yeha, manually fix it
deep42thought: so I should add something to the install file

Reading the log again, I'm not sure anymore, that my conclusion was right.

Can you please:
a) remove the system user upon removal of the package or
b) tell me, how to achieve auto-removal without packager intervention?

Cheers,
deepthought
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 25 April 2019, 06:20 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See https://www.archlinux.org/todo/usergroup -management/
Comment by Eli Schwartz (eschwartz) - Thursday, 25 April 2019, 06:20 GMT
There is no auto-removal. As per policy. See https://www.archlinux.org/todo/usergroup-management/ for more details.

Having an inert system user without login capabilities reserving a uid in the passwd database causes no harm.

Loading...