Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#41310 - [elasticsearch] do NOT use sysusers
Attached to Project:
Community Packages
Opened by Dave Reisner (falconindy) - Wednesday, 23 July 2014, 18:57 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 23 July 2014, 21:56 GMT
Opened by Dave Reisner (falconindy) - Wednesday, 23 July 2014, 18:57 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 23 July 2014, 21:56 GMT
|
DetailsUsing sysusers means that you never packages files which are owned by the users you create via sysusers, because the UID will vary between every machine.
Please do not do this. We need to plan something larger (distro-wide) if we're going to go down this road of using sysusers. |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Wednesday, 23 July 2014, 21:56 GMT
Reason for closing: Fixed
Additional comments about closing: elasticsearch-1.3.0-1
Wednesday, 23 July 2014, 21:56 GMT
Reason for closing: Fixed
Additional comments about closing: elasticsearch-1.3.0-1
An install file with a useradd call would have the same effect as far as I understand.
Also, even if I create the user in the install script with useradd, I do not need to package files owned by the elasticsearch user (all files in the package are owned by root:root).
Only the data directory needs those permissions, and other than that the user is used by the systemd service file at runtime.
If there is really an issue with using sysusers or even if it's just a packaging policy I can revert the change but I would still like to understand the reason why.
Now I wonder why this is the case. Given the fact that sysusers is meant to allow for a stateless system to boot or to be "factory resetted" this behavior seems like a bug because if you can't use it like this it seems pretty useless for everything else.
Other than the shadow files issue, everything else would have been fine though, right?
I will get back to the old way of creating users anyway. Thanks for the explanation!
Well, I believe this to be the case, but there's been a lot of dust kicked up on the systemd-devel ML recently about sysusers and what exactly the scope of it is. I'd really like to see this all settle out before we make any decision to lean on it in Arch. We may decide some day that this is all good and fine and that users who want to worry about shadow's own definitions of "consistency" are on their own.