File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
cookbooks/aws-parallelcluster-platform Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 29
29
mode '1777'
30
30
recursive true
31
31
end
32
+
33
+ # The default permission for directory /etc is 0755.
34
+ # However, in Rocky9.4 it was unintentionally changed to 0777,
35
+ # causing issues with Munge, that fails to start if /etc has group-writable permission without sticky bit.
36
+ # See https://forums.rockylinux.org/t/changed-permissions-on-etc-in-rl9-4-genericcloud-image/14449
37
+ directory '/etc' do
38
+ owner 'root'
39
+ mode '0755'
40
+ recursive false
41
+ end
Original file line number Diff line number Diff line change 43
43
recursive : true
44
44
)
45
45
end
46
+
47
+ it 'sets permission 0755 for /etc' do
48
+ is_expected . to create_directory ( '/etc' ) . with (
49
+ owner : 'root' ,
50
+ mode : '0755' ,
51
+ recursive : false
52
+ )
53
+ end
46
54
end
47
55
end
48
56
end
You can’t perform that action at this time.
0 commit comments