WSL Keeps Change Permission to 0777

WSL Keeps Change Permission to 0777
Photo by John McArthur / Unsplash

Ever facing this issue but when you're tried to chmod to 600, it never changed yet?

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'dn_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "dn_rsa": bad permissions

Add this config to your /etc/wsl.conf

[automount]
options = "metadata"

Then try again to chmod your files.