Skip to content

Commit

Permalink
Ensure gnupg directory and files are owned by ossec
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Nov 23, 2020
1 parent 5a0f089 commit d232986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install_files/securedrop-ossec-server/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ case "$1" in
chown root:${GROUP} ${OSSEC_HOME}/rules/local_rules.xml
chmod 440 ${OSSEC_HOME}/rules/local_rules.xml

# Ensure correct gnupg directory permissions
# Ensure correct gnupg directory permissions and ownership
chown -R ossec:${GROUP} ${OSSEC_HOME}/.gnupg
find ${OSSEC_HOME}/.gnupg -type f -exec chmod 600 {} \;
find ${OSSEC_HOME}/.gnupg -type d -exec chmod 700 {} \;

Expand Down

0 comments on commit d232986

Please sign in to comment.