From ccdd52e29edb399ee62c2a233122df97bc065000 Mon Sep 17 00:00:00 2001 From: Tony James <3128081+tonyjames@users.noreply.github.com> Date: Fri, 11 Aug 2023 10:46:46 -0400 Subject: [PATCH] Fixes #36673 - Fix directory ownership for remote_execution_ssh_user --- .../provisioning_templates/snippet/remote_execution_ssh_keys.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/unattended/provisioning_templates/snippet/remote_execution_ssh_keys.erb b/app/views/unattended/provisioning_templates/snippet/remote_execution_ssh_keys.erb index f898128682e..43fc6acefe3 100644 --- a/app/views/unattended/provisioning_templates/snippet/remote_execution_ssh_keys.erb +++ b/app/views/unattended/provisioning_templates/snippet/remote_execution_ssh_keys.erb @@ -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