diff --git a/crmsh/report/sh.py b/crmsh/report/sh.py index c3627fcfe..f0b23a4a0 100644 --- a/crmsh/report/sh.py +++ b/crmsh/report/sh.py @@ -43,10 +43,10 @@ def _try_create_report_shell(local_shell: crmsh.sh.LocalShell, host: str, user: # call can_run_as here to populate know_hosts if not ssh_shell.can_run_as(host, user): return None - # check for root privilege + # check for root/hacluster privilege ret = ssh_shell.subprocess_run_without_input( host, user, - 'true' if user == 'root' else 'sudo true', + 'true' if user == 'root' or user == 'hacluster' else 'sudo true', start_new_session=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,