Empty %_postun_userdel -> /usr/share/rpm-helper/del-user

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

Empty %_postun_userdel -> /usr/share/rpm-helper/del-user

Postby fixxer » Dec 17th, '16, 11:19

I have a question about removing system user after daemon / service package uninstallation.

Script, that commonly is used to it in %postun is empty and does nothing. It was wrote even in README:
/usr/share/doc/rpm-helper/README wrote:%_postun_userdel <name>
Does nothing currently.
...
%_postun_groupdel <group>
Does nothing currently.


What is methodologically (technically) correct - to remove or not to remove system user (with userdel -rf $NAME) with package uninstallation?
fixxer
 
Posts: 13
Joined: Nov 15th, '15, 20:56

Re: Empty %_postun_userdel -> /usr/share/rpm-helper/del-user

Postby doktor5000 » Dec 17th, '16, 15:19

Users or groups should not be removed, as you can never know if any files outside that users home folder might still belong to them, and how to automatically handle those stale files then.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest