Files
public/Infrastrucutre as Code/Ansible/roles/cis_hardening/file_permissions/defaults/main.yml
T
2026-06-09 10:20:07 +03:00

17 lines
834 B
YAML

---
# Default ownership and permissions for critical files and directories
file_permissions_list:
- { path: "/root", mode: "0700", state: "directory" }
- { path: "/etc/passwd", mode: "0644", state: "file" }
- { path: "/etc/shadow", mode: "0400", state: "file" }
- { path: "/etc/group", mode: "0644", state: "file" }
- { path: "/etc/gshadow", mode: "0400", state: "file" }
- { path: "/etc/crontab", mode: "0600", state: "file" }
- { path: "/etc/cron.hourly", mode: "0700", state: "directory" }
- { path: "/etc/cron.daily", mode: "0700", state: "directory" }
- { path: "/etc/cron.weekly", mode: "0700", state: "directory" }
- { path: "/etc/cron.monthly", mode: "0700", state: "directory" }
- { path: "/etc/cron.d", mode: "0700", state: "directory" }
- { path: "/etc/rsyslog.conf", mode: "0640", state: "file" }