mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-26 01:43:30 +01:00
Lock down Backups folder permissions
This commit is contained in:
@@ -231,6 +231,14 @@ commonlogrotateconf:
|
||||
- dayweek: '*'
|
||||
|
||||
{% if role in ['eval', 'manager', 'managersearch', 'standalone'] %}
|
||||
# Lock permissions on the backup directory
|
||||
file.directory:
|
||||
- name: /nsm/backup
|
||||
- user: 0
|
||||
- group: 0
|
||||
- makedirs: True
|
||||
- mode: 700
|
||||
|
||||
# Add config backup
|
||||
/usr/sbin/so-config-backup > /dev/null 2>&1:
|
||||
cron.present:
|
||||
|
||||
Reference in New Issue
Block a user