Skip to content

MDEV-39480 sysusers.d: lock mysql user and use non-login account metadata#5012

Open
aquilamacedo wants to merge 1 commit intoMariaDB:mainfrom
aquilamacedo:main_ref
Open

MDEV-39480 sysusers.d: lock mysql user and use non-login account metadata#5012
aquilamacedo wants to merge 1 commit intoMariaDB:mainfrom
aquilamacedo:main_ref

Conversation

@aquilamacedo
Copy link
Copy Markdown
Contributor

Use u! for @MYSQLD_USER@ and set the account home and shell to /nonexistent and /bin/false instead of using the data directory as the home.

This makes the mysql account explicitly non-interactive and avoids using the datadir as login-related account metadata.

…data

Use u! for @MYSQLD_USER@ and set the account home and shell to
/nonexistent and /bin/false instead of using the data directory as the
home.

This makes the mysql account explicitly non-interactive and avoids using
the datadir as login-related account metadata.
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Apr 29, 2026
Copy link
Copy Markdown
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! This is a preliminary review.

LGTM. Please stand by for the final review.

@ottok
Copy link
Copy Markdown
Contributor

ottok commented Apr 30, 2026

Thanks @gkodinov for quick review! Really nice to see the upstream contribution pipeline flow this well. I now updated the metadata of this and other patches in Debian as there has been so much progress in upstreaming them: https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/1c4223d59d801c564f9c7655727ea3fc1cf00bf6

@grooverdan
Copy link
Copy Markdown
Member

The u! syntax depend on systemd v257, which is a version is more than what most distros carry. So there's implications on how earlier version handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

4 participants