Details
-
Bug
-
Status: In Review (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11
Description
MariaDB currently creates the @MYSQLD_USER@ sysusers entry like this:
u @MYSQLD_USER@ - "MariaDB" @MYSQL_DATADIR@ |
This leaves the datadir as the account home and does not make it explicit that the account is locked/non-login.
For a service user, it is clearer to define it as a locked account with no usable home or shell:
u! @MYSQLD_USER@ - "MariaDB Server" /nonexistent /bin/false |
This makes the mysql account clearly service-only, avoids using the datadir as a login home, and matches the usual convention for non-interactive system users.