TMAegisベータ
mariadb のその他のルール

MariaDB

TMA-MARIADB-1.5

Ensure Interactive Login is Disabled

中レベル 2自動mariadb

説明

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. Checks that the mysql account has /bin/false or nologin as its shell.

チェック方法

監査方法: シェルコマンド

shell
out=$(getent passwd mysql 2>/dev/null) || exit 1; s=${out##*:}; case "$s" in /bin/false|/usr/bin/false|/sbin/nologin|/usr/sbin/nologin) echo compliant ;; *) echo "$s" ;; esac
期待される出力
compliant

修正方法

修正方法: シェルコマンド

shell
usermod -s /bin/false mysql

プロパティ

オペレーティングシステム
すべて
タグ
mariadbdatabaseosauthentication
参照
CIS MariaDB 10.11 Benchmark v1.0.0 - 1.5 Ensure Interactive Login is Disabled

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target mariadb --level 2