On Wed, Mar 05, 2025 at 03:26:44PM +0100, Michal Schorm wrote: > I started testing the patches in MariaDB and MySQL. > I merged PRs to other packages, but since MariaDB and MySQL share the > same user and group config, I want to check if it works fine for them > in various combinations. > > However I noticed a behavior that surprised me: > When installing MariaDB on Fedora 42 or Rawhide, the current scriptlet > (now, before the sysusers patch) does not guarantee the user / group > ID number anymore. > > | # rpm -q --scripts mariadb-server > | preinstall scriptlet (using /bin/sh): > | /usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : > | /usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /sbin/nologin \ > | -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || : > > Results in: > | Finished unknown scriptlet: mariadb-server-3:10.11.11-1.fc42.x86_64 > | Scriptlet output: > | Creating group 'mysql' with GID 990. > | Creating user 'mysql' (MariaDB) with UID 990 and GID 990. > > And the UID/GID 27 will remain unused, free. > > While on Fedora 41 and older it guarantees the UID/GID 27. > > I checked the Fedora changes for F42 by title and the > RPMSuportForSystemdSysusers in full, but none seem to mention this. The output shown above is from sysusers. So it looks like there's a sysusers config for 'mysql'. Oh, there was a second sysusers file already provided by the package, just without the uid. I updated the PR. Zbyszek -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue