[GH-ISSUE #892] permissions error on ollama create on Linux #62469

Closed
opened 2026-05-03 09:04:31 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @jmorganca on GitHub (Oct 24, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/892

Originally assigned to: @mxyng on GitHub.

On Linux, Ollama runs as another ollama user. This causes permission errors on ollama create.

A fix is in progress, tracked here: https://github.com/jmorganca/ollama/issues/891

In the meantime, current workaround is to add ollama to the user's group so Ollama can access group-accessible files:

usermod -a -G $(id -gn $USER) ollama

Then re-start the ollama service

sudo systemctl restart ollama
Originally created by @jmorganca on GitHub (Oct 24, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/892 Originally assigned to: @mxyng on GitHub. On Linux, Ollama runs as another `ollama` user. This causes permission errors on `ollama create`. A fix is in progress, tracked here: https://github.com/jmorganca/ollama/issues/891 In the meantime, current workaround is to add `ollama` to the user's group so Ollama can access group-accessible files: ``` usermod -a -G $(id -gn $USER) ollama ``` Then re-start the `ollama` service ``` sudo systemctl restart ollama ```
GiteaMirror added the buglinux labels 2026-05-03 09:04:42 -05:00
Author
Owner

@ClaudiuCeia commented on GitHub (Nov 7, 2023):

#613 is reporting the same issue but was closed following a PR to add ollama to user group with apparently no effect.
The fix suggested in this post doesn't work for me either, only managed to get it working by copying the model to the /tmp directory.

Linux fedora-laptop 6.5.7-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 11 04:07:58 UTC 2023 x86_64 GNU/Linux

<!-- gh-comment-id:1798295280 --> @ClaudiuCeia commented on GitHub (Nov 7, 2023): #613 is reporting the same issue but was closed following a PR to add ollama to user group with apparently no effect. The fix suggested in this post doesn't work for me either, only managed to get it working by copying the model to the `/tmp` directory. `Linux fedora-laptop 6.5.7-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 11 04:07:58 UTC 2023 x86_64 GNU/Linux`
Author
Owner

@iplayfast commented on GitHub (Nov 11, 2023):

Ongoing bug with fresh install Nov 11

<!-- gh-comment-id:1806713165 --> @iplayfast commented on GitHub (Nov 11, 2023): Ongoing bug with fresh install Nov 11
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62469