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

Bad owner or permissions on ~/.ssh/config even if [automount]options = "metadata" #7134

Open
eromoe opened this issue Jun 29, 2021 · 2 comments
Labels

Comments

@eromoe
Copy link

eromoe commented Jun 29, 2021

Describe the solution you'd like

  1. I want to sync ~/.ssh or some folder in windows and wsl

  2. I found ssh would get error because of bad permissions

  3. add

     [automount]
    options = "metadata"
    

    to /etc/wsl.conf and chmod solve this temporarily .

  4. But after I alter ~/.ssh/config in by sublime in windows , the permissions changed

  5. get Bad owner or permissions again in wsl

  6. Why it can't keep the fake permissions in wsl ?

@eromoe eromoe added the feature label Jun 29, 2021
@0xbadfca11
Copy link

Some editors (including maybe sublime) do not really overwrite for safety when you do an overwrite save.

OLD data NEW data
Before save textfile.txt (none)
Save start textfile.txt textfile.txt.tmp
textfile.txt.bak textfile.txt.tmp
textfile.txt.bak textfile.txt
Save finished (delete) textfile.txt

However, this behavior sometimes behaves undesirably.

WSL metadata attached No WSL metadata
Before save textfile.txt (none)
Save start textfile.txt textfile.txt.tmp
textfile.txt.bak textfile.txt.tmp
textfile.txt.bak textfile.txt
Save finished (delete) textfile.txt

If have a setting that stops such behavior, you may change that setting.

@therealkenc
Copy link
Collaborator

Same #3165 #3934 #3776 (others prob). For all practical purposes by-design.

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

No branches or pull requests

3 participants