TMAegisBeta
Thêm quy tắc cho linux

Linux distributions

TMA-LNX-PERM-PASSWD

Ensure permissions on /etc/passwd are configured

CaoCấp 1Tự độnglinux

Mô tả

/etc/passwd must be 644 root:root.

Cách kiểm tra

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

shell
stat -Lc '%a %U %G' /etc/passwd
Đầu ra mong đợi
644 root root

Cách khắc phục

Phương pháp khắc phục: Lệnh shell

shell
chown root:root /etc/passwd && chmod 644 /etc/passwd

Thuộc tính

Hệ điều hành
ubuntu-22.04, ubuntu-24.04, rocky-9
Thẻ
permissionsfiles
Tham chiếu
CIS Linux Benchmark - System File Permissions (verify section number for your distro release)

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 linux