Information
When created, the MariaDB user may have interactive access to the operating system, which means that the MariaDB user could login to the host as any other user would.
Rationale:
Preventing the MariaDB user from logging in interactively may reduce the impact of a compromised MariaDB account. There is also more accountability, as accessing the operating system where the MariaDB server lies will require the user's own account. Interactive access by the MariaDB user is unnecessary and should be disabled.
Impact:
This setting will prevent the MariaDB administrator from interactively logging into the operating system using the MariaDB user. Instead, the administrator will need to log in using one's own account.
Solution
Execute one of the following commands in a terminal:
usermod -s /bin/false mysql
Or
usermod -s /sbin/nologin mysql