Skip to content

fix: change file permissions from 0600 to 0644 in InstallModel#8657

Merged
mudler merged 1 commit intomudler:masterfrom
localai-bot:fix/issue-8119-permissions
Feb 26, 2026
Merged

fix: change file permissions from 0600 to 0644 in InstallModel#8657
mudler merged 1 commit intomudler:masterfrom
localai-bot:fix/issue-8119-permissions

Conversation

@localai-bot
Copy link
Copy Markdown
Contributor

Description

Closes #8119

When installing models from the gallery, files are created with 0600
permissions (owner read/write only), making them unreadable by the
LocalAI server when running as a different user.

This fix changes the permissions to 0644 (owner read/write, group/others
read), allowing the server to read model files regardless of the user
it runs as.

Changes made:

  • Line 218: Prompt template files (os.WriteFile with 0644)
  • Line 271: Config YAML file (os.WriteFile with 0644)
  • Line 288: Gallery metadata file (os.WriteFile with 0644)

Closes mudler#8119

When installing models from the gallery, files are created with 0600
permissions (owner read/write only), making them unreadable by the
LocalAI server when running as a different user.

This fix changes the permissions to 0644 (owner read/write, group/others
read), allowing the server to read model files regardless of the user
it runs as.
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 26, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 6ed2802
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69a00172e433650008f8be6c
😎 Deploy Preview https://deploy-preview-8657--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler marked this pull request as ready for review February 26, 2026 08:38
@mudler mudler merged commit 8bfe458 into mudler:master Feb 26, 2026
36 of 38 checks passed
@mudler mudler added the bug Something isn't working label Feb 26, 2026
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
…r#8657)

Closes mudler#8119

When installing models from the gallery, files are created with 0600
permissions (owner read/write only), making them unreadable by the
LocalAI server when running as a different user.

This fix changes the permissions to 0644 (owner read/write, group/others
read), allowing the server to read model files regardless of the user
it runs as.

Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

installing new models on timeshare server causes them to be unreadable

2 participants