daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
9.47k stars 802 forks source link

clone repositorie should use daytona user default #1238

Open loveloki opened 2 weeks ago

loveloki commented 2 weeks ago

Describe the bug use root user on machine then create workspace, the git repositorie all file's owner is root.

To Reproduce Steps to reproduce the behavior:

  1. use root user on
  2. run daytona create to create a workspace
  3. run daytona ssh into the created workspace
  4. run ll, see the owner

Expected behavior anyway, All files should be owned by the user(default is daytona).

Screenshots image

Desktop (please complete the following information):

Tpuljak commented 2 weeks ago

@loveloki thanks for the issue. We are aware of this "problem" and, I don't think there's much we can do here. It's just how the root user works. If you run anything with root, the product will be owned by root as well. If you try to create a devcontainer using VS Code while signed in as root, it will also mount the files as root and you won't be able to edit them inside the devcontainer.

If you have any ideas on how to work around this, we're happy to consider them.

daytonaBot commented 1 day ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thanks for the feedback.