TMAegis
Thêm quy tắc cho aix

TMA-AIX-4.3.1.1

Ensure writesrv service is not in use

Trung bìnhCấp 1Tự độngaix

Mô tả

The recommendation is to disable writesrv. This allows users to chat using the system write facility on a terminal. writesrv allows users to chat using the system write facility on a terminal. The recommendation is that this service must be disabled. Audit: automated read-only check derived from the CIS audit procedure; it prints "compliant" when the control is met.

Cách kiểm tra

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

shell
command -v lsitab >/dev/null 2>&1 || exit 1; command -v lssrc >/dev/null 2>&1 || exit 1; out=$( { lsitab writesrv | grep -v off; lssrc -s writesrv | tail -n 1 | grep -v inoperative ; } 2>/dev/null ); [ -z "$out" ] && echo compliant || printf '%s\n' "$out" | head -n 20
Đầu ra mong đợi
compliant

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

Use the chitab command to disable the writesrv start-up script in /etc/inittab: Note: Do not use the rmitab to remove the writesrv start-up script from /etc/inittab as it may return during a update. /usr/sbin/chitab "writesrv:23456789:off:/usr/bin/startsrc -swritesrv" Use stopsrc to ensure that writesrv is not running /usr/bin/stopsrc -s writesrv

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
aixservices
Tham chiếu
CIS IBM AIX 7 Benchmark v1.2.0 - 4.3.1.1 Ensure writesrv service is not in use

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 aix