Skip to content

Commit

Permalink
Fixes #36673- Fix directory ownership for remote_execution_ssh_user
Browse files Browse the repository at this point in the history
Fixes #36673 - Fix directory ownership for remote_execution_ssh_user
  • Loading branch information
tonyjames committed Sep 14, 2023
1 parent 31b23dd commit b046247
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ EOF
chmod 0700 <%= ssh_path %>
chmod 0600 <%= ssh_path %>/authorized_keys
chown -R <%= "#{ssh_user}:" %> <%= ssh_path %>
chown -R <%= "#{ssh_user}:" %> <%= "~#{ssh_user}" %>

# Restore SELinux context with restorecon, if it's available:
command -v restorecon && restorecon -RvF <%= ssh_path %> || true
Expand Down

0 comments on commit b046247

Please sign in to comment.