Skip to content

Commit

Permalink
fix: permissions on /var/log/amazon directory (#162)
Browse files Browse the repository at this point in the history
Problem:
It's been reported that when the worker-agent installer, running as
root, creates `/var/log/amazon/deadline` that the agent was unable
to write its own logs to that directory when running as a non-root
user.

Solution:
Add go+rx to `/var/log/amazon` -- this is the solution reported to work
by the reporting customer.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
  • Loading branch information
ddneilson committed Feb 20, 2024
1 parent cffb083 commit 1acfffc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/deadline_worker_agent/installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ fi
# Provision log directory
echo "Provisioning log directory (/var/log/amazon/deadline)"
mkdir -p /var/log/amazon/deadline
chmod 755 /var/log/amazon
chown -R "${wa_user}:${wa_user}" /var/log/amazon/deadline
chmod -R 750 /var/log/amazon/deadline
echo "Done provisioning log directory (/var/log/amazon/deadline)"
Expand Down

0 comments on commit 1acfffc

Please sign in to comment.