TMAegis
Thêm quy tắc cho mariadb

TMA-MARIADB-4.5

Ensure mariadb is Not Started With 'skip-grant-tables'

Nghiêm trọngCấp 1Tự độngmariadb

Mô tả

This option causes mariadbd to start without using the privilege system. Counts enabled skip-grant-tables settings in the server option groups and on the running server command line.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
c=$(my_print_defaults --mysqld 2>/dev/null) || exit 1; p=$(ps -eo comm=,args= 2>/dev/null) || exit 1; n=$( { printf '%s\n' "$c"; printf '%s\n' "$p" | awk '$1=="mysqld"||$1=="mariadbd"' | tr ' ' '\n'; } | grep -Eic '^--skip[-_]grant[-_]tables(=(1|on|true|yes))?$' ); echo "$n"
Đầu ra mong đợi
0

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Remove skip-grant-tables (and skip_grant_tables) from the option files or set skip-grant-tables = FALSE, remove it from the start-up command line, and restart MariaDB.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
mariadbdatabaseauthentication
Tham chiếu
CIS MariaDB 10.11 Benchmark v1.0.0 - 4.5 Ensure mariadb is Not Started With 'skip-grant-tables'

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target mariadb