Why am I facing "permission denied" when scanning images with Twistcli?
750
Created On 02/20/24 08:49 AM - Last Modified 04/29/25 13:37 PM
Question
Why am I facing "permission denied" when scanning images with Twistcli?
Error:
sudo: unable to execute ./twistcli: Permission denied
Environment
- Prisma Cloud Enterprise Version with Twistlock enabled
- Prisma Cloud Self-Hosted
Answer
Check the permissions of twistcli binary and ensure it has 'executable' permission. Once you've confirmed that twistcli has the execute permission, try scanning the image again.
For example, you can use the ls -l command to check permissions:
efinol@efinol-podman:~/twistlock_32_02_127/linux$ ls -l
If twistcli appears similar to the following example:
efinol@efinol-podman:~/twistlock_32_02_127/linux$ ls -l total 116328 drwxr-xr-x 2 efinol efinol 4096 Jan 25 09:32 arm64 -rwxr-xr-x 1 efinol efinol 119111816 Jan 25 09:32 twistcli
where "x" indicates executable permission for the owner, group, and others, it has the necessary permissions.
You can also confirm this using a chmod calculator .