microsoft / microsoft/WSL

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

Open
#7,134 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

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 ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence using /etc/wsl.conf with [automount] options = "metadata", then edit ~/.ssh/config in Windows with Sublime and check the resulting permissions in WSL. Determine why the metadata or fake permissions do not persist; done means the synchronized SSH configuration remains usable by ssh after Windows edits.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.