TMAegisBeta
Thêm quy tắc cho solaris

Oracle Solaris

TMA-SOLARIS-7.3

Set Default umask for users

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

Mô tả

The default umask(1) determines the permissions of files created by users. The user creating the file has the discretion of making their files and directories readable by others via the chmod(1) command. Setting a very secure default value for umask ensures that users make a conscious choice about their file permissions. A default umask setting of 077 causes files and directories created by users to not be readable by any other user on the system. Audit: UMASK must be 027 (or the stricter 077).

Cách kiểm tra

Phương pháp kiểm tra: Mẫu tệp

Tệp
/etc/default/login
Mẫu khớp
(?m)^UMASK=0?(27|77)\s*$

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

Perform the following to implement the recommended state: # cd /etc/default # awk '/#UMASK=/ { $1 = "UMASK=027" } { print }' login > login.CIS # mv login.CIS login

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
solarisaccounts
Tham chiếu
CIS Oracle Solaris 11.4 Benchmark v1.1.0 - 7.3 Set Default umask for users

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 solaris