Open ghost opened 5 years ago
Also note that deleting and readding the user leads to problems itself: if the user id changes, the ownership of all directories (/etc/docserv, /var/cache/docserv/) is wrong and the files are not writable for the daemon without running a chown first.
I've asked Reinhard and he said:
You shouldn't remove any users in the %postun section. Any created user in the system should be kept due to security reasons.
This exact reason was already written by Sven above. To answer Stefan's questions:
why was the docserv user not reinstated when installing?
The user and group should never be deleted. If you keep them, the above problems disappear.
should we delete the docserv user during uninstallation?
No. :-)
For the reasons stated above, we should close that "bug" as invalid.
updated the spec file to no longer delete the docserv user or group. not yet closing this issue, as this still essentially untested and i am not sure the issue is fixed completely yet.
i zypper rm'd the ~0.9.20 package, then zypper in'd the 0.9.21 package and suddenly the
docserv
user did not exist anymore. hence the service failed with:questions:
docserv
user not reinstated when installing?docserv
user during uninstallation?