MariaDB
TMA-MARIADB-1.5
Ensure Interactive Login is Disabled
MediaNivel 2Automatizadamariadb
Descripción
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.
Cómo se verifica
Método de auditoría: Comando de 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- Salida esperada
compliant
Cómo se corrige
Método de corrección: Comando de shell
shell
usermod -s /bin/false mysqlPropiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- mariadbdatabaseosauthentication
- Referencia
- CIS MariaDB 10.11 Benchmark v1.0.0 - 1.5 Ensure Interactive Login is Disabled
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target mariadb --level 2