Runbooks: SSH action output shows "Permission denied" error
The /tmp
directory of the target system must be mounted without the
noexec
property.
Problem
When attempting to run an SSH action script on some Linux® target system, an error such as bash: /tmp/tmp.gXO9WCs7Zy: Permission denied
is displayed in the script output
area.
Cause
In order to run an SSH script on a Linux target system, Runbook Automation writes a temporary script
file to the /tmp
directory of the target system, and executes it from there. So the
user on the target system that is configured to run the SSH script remotely does not only need to
have write access to the /tmp
directory , but also the /tmp
directory itself must not be mounted with the noexec
property.
Resolution
Mount the /tmp
directory without the noexec
property, and
verify that scripts can be run from within /tmp
. Then retry running the SSH
action.