> Source: [sk184593](https://support.checkpoint.com/results/sk/sk184593)

# sk184593 - A non-local user that runs the Ansible cp_gaia_run_script gets a "Permission denied" error

| Property | Value |
|----------|-------|
| Solution ID | sk184593 |
| Date Created | 2026-02-09 |
| Last Modified | 2026-02-24 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82, R81.20, R81.10 (EOS) |

## Symptoms

- A non-local user that runs the Ansible `cp_gaia_run_script` gets a "Permission denied" error:
`L2Jpbi9zaDogL3Jlc3RfYXBpLy9ydW5TY3JpcHRUZW1wLnNoLTZkMGRmYmJhLWJlZWUtNGNiMC1hODY2LTUyZjAyMGQzY2E1ZjogUGVybWlzc2lvbiBkZW5pZWQ=`  

`Base64:`  
`/bin/sh: /rest_api//runScriptTemp.sh-87196e35-ad64-427c-a31d-c6f2303575ea: Permission denied`

## Cause

When the Ansible module runs, it creates a temporary file `runScriptTemp.sh` in the /rest_api/ directory, which is deleted at the end of its execution. The script fails because non-local users do not have access to this directory.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
