Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code server user does not have permissions to modify files #80

Open
njgrisafi opened this issue Oct 5, 2024 · 2 comments
Open

Code server user does not have permissions to modify files #80

njgrisafi opened this issue Oct 5, 2024 · 2 comments

Comments

@njgrisafi
Copy link

Launching a fresh instance with the code server results in permissions denied errors when trying to modify files.

When looking at the file system the owner and group of /config is root. Is this intended?

@njgrisafi
Copy link
Author

Using podSecurityContext as root user seems to fix the issue for me

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

@pajikos
Copy link
Owner

pajikos commented Oct 10, 2024

I am running with this configuration to avoid running as root:

podSecurityContext:
  runAsUser: 1000
  runAsGroup: 1000
  fsGroup: 1000
  fsGroupChangePolicy: "OnRootMismatch"

You are correct. The code server now uses UID 1000, while Home Assistant uses UID 0 in the default configuration, and they do not work together. I will try to think about how to solve this issue in the current Helm template without breaking any existing installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants