Skip to content

Commit

Permalink
[Directories] Set /etc permissions to 0755.
Browse files Browse the repository at this point in the history
This is the default permission in Linux, but it was unintentionally changed in Rocky9.4 (https://forums.rockylinux.org/t/changed-permissions-on-etc-in-rl9-4-genericcloud-image/14449) breaking Munge, which requires the folder to be 0755.

Signed-off-by: Giacomo Marciani <mgiacomo@amazon.com>
  • Loading branch information
gmarciani committed Sep 23, 2024
1 parent b00a0c6 commit 86c5052
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@
mode '1777'
recursive true
end

# The default permission for directory /etc is 0755.
# However, in Rocky9.4 it was unintentionally changed to 0777,
# causing issues with Munge, that fails to start if /etc has group-writable permission without sticky bit.
# See https://forums.rockylinux.org/t/changed-permissions-on-etc-in-rl9-4-genericcloud-image/14449
directory '/etc' do
owner 'root'
mode '0755'
recursive false
end

0 comments on commit 86c5052

Please sign in to comment.