[PR #11133] server: update model blob and manifest permissions #13450

Open
opened 2026-04-13 00:27:39 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11133

State: open
Merged: No


This PR updates the permissions for the model blob and manifest files to 666, and directories to 777, before applying umask.

We're using Ollama in a multi-user environment and want to set up a shared models directory to prevent duplicate downloads. Currently, model files (644) and directories (755) restrict sharing, regardless of umask. With this change, setting a permissive umask (e.g., 000) allows all users to read/write shared models, while the default umask (022) keeps the existing behavior.

Thank you for reviewing this PR.

**Original Pull Request:** https://github.com/ollama/ollama/pull/11133 **State:** open **Merged:** No --- This PR updates the permissions for the model blob and manifest files to 666, and directories to 777, before applying umask. We're using Ollama in a multi-user environment and want to set up a shared models directory to prevent duplicate downloads. Currently, model files (644) and directories (755) restrict sharing, regardless of umask. With this change, setting a permissive umask (e.g., 000) allows all users to read/write shared models, while the default umask (022) keeps the existing behavior. Thank you for reviewing this PR.
GiteaMirror added the pull-request label 2026-04-13 00:27:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13450