Skip to content

Commit 98c0681

Browse files
authored
Merge pull request #142 from bykvaadm/fix_5.1.x
[5.1.x] fix ssh keys permissions
2 parents f2e0717 + 3092640 commit 98c0681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/section_5/cis_5.1.x.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
path: "{{ item.path }}"
5757
owner: root
5858
group: root
59-
mode: 'o-x,go-rwx'
59+
mode: 'u-x,go-rwx'
6060
with_items:
6161
- "{{ discovered_ssh_host_priv_keys.files }}"
6262
loop_control:
@@ -84,7 +84,7 @@
8484
path: "{{ item.path }}"
8585
owner: root
8686
group: root
87-
mode: 'go-wx'
87+
mode: 'u-x,go-wx'
8888
with_items:
8989
- "{{ discovered_ssh_host_pub_keys.files }}"
9090
loop_control:

0 commit comments

Comments
 (0)