IBM AIX
TMA-AIX-6.2.2
Ensure access to crontab is configured
說明
crontab is the program used to install, deinstall, list or execute the tables used to drive the cron daemon. Each user can have their own crontab, and though files are created, they are not intended to be edited directly. If the /var/adm/cron/cron.allow file exists, then you must be listed (one user per line) therein in order to be allowed to use this command. Audit: cron.deny must not exist and cron.allow must exist (review its users).
檢查方式
稽核方法: Shell 指令
[ ! -e /var/adm/cron/cron.deny ] && [ -f /var/adm/cron/cron.allow ] && echo compliant || echo "cron.deny present or cron.allow missing"- 預期輸出
compliant
修補方式
修補方法: 操作指南或基礎設施修補檔
Remove /var/adm/cron/cron.deny if it exists: # /usr/bin/rm /var/adm/cron/cron.deny IF /var/adm/cron/cron.allow does not exist, create the file: # print "root\nadm" > /var/adm/cron/cron.allow IF /var/adm/cron/cron.allow already exists, ensure that it contains at least the root and adm users.
屬性
- 作業系統
- 不限
- 標籤
- aixpermissions
- 參考資料
- CIS IBM AIX 7 Benchmark v1.2.0 - 6.2.2 Ensure access to crontab is configured
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
tmaegis scan --target aix