[GH-ISSUE #4229] Cannot run model with noexec /tmp #49150

Closed
opened 2026-04-28 10:50:11 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jmbit on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4229

What is the issue?

For security reason, I have set /tmp to nodev,nosuid,noexec.
However, this means I can't run ollama models:

 ~ $ ollama run llama3
Error: error starting the external llama server: fork/exec /tmp/ollama2604787016/runners/cpu_avx2/ollama_llama_server: permission denied
# /etc/fstab: static file system information.
...
# <file system>             <mount point>            	<type>  <options>                        			<dump>  <pass>
...
# shm, tmp
tmpfs                   /dev/shm                     tmpfs   defaults,nodev,nosuid,noexec                       	0       0
tmpfs                   /tmp                         tmpfs   defaults,nodev,nosuid,noexec                       	0       0

Is there any way to set the execution directory for ollama?

OS

Linux

GPU

Intel

CPU

Intel

Ollama version

0.1.33

Originally created by @jmbit on GitHub (May 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4229 ### What is the issue? For security reason, I have set /tmp to nodev,nosuid,noexec. However, this means I can't run ollama models: ``` ~ $ ollama run llama3 Error: error starting the external llama server: fork/exec /tmp/ollama2604787016/runners/cpu_avx2/ollama_llama_server: permission denied ``` ```fstab # /etc/fstab: static file system information. ... # <file system> <mount point> <type> <options> <dump> <pass> ... # shm, tmp tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0 tmpfs /tmp tmpfs defaults,nodev,nosuid,noexec 0 0 ``` Is there any way to set the execution directory for ollama? ### OS Linux ### GPU Intel ### CPU Intel ### Ollama version 0.1.33
GiteaMirror added the bug label 2026-04-28 10:50:11 -05:00
Author
Owner

@pdevine commented on GitHub (May 7, 2024):

I think this is essentially a dupe of #4105 . I'll close this and we can track it in the other issue.

<!-- gh-comment-id:2099089935 --> @pdevine commented on GitHub (May 7, 2024): I think this is essentially a dupe of #4105 . I'll close this and we can track it in the other issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49150