From 1a2b2f906f4e7168abd2a76fc07388855e3e80a4 Mon Sep 17 00:00:00 2001 From: Aquila Macedo Date: Tue, 28 Apr 2026 18:57:40 -0300 Subject: [PATCH] MDEV-39480 sysusers.d: lock mysql user and use non-login account metadata 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. --- support-files/sysusers.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support-files/sysusers.conf.in b/support-files/sysusers.conf.in index a975b29476aa0..8de384f45d0f0 100644 --- a/support-files/sysusers.conf.in +++ b/support-files/sysusers.conf.in @@ -1 +1 @@ -u @MYSQLD_USER@ - "MariaDB" @MYSQL_DATADIR@ +u! @MYSQLD_USER@ - "MariaDB Server" /nonexistent /bin/false