winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.15k stars 260 forks source link

Permission problem when the user is linked to Microsoft account #316

Closed ge9 closed 3 years ago

ge9 commented 3 years ago

First, I appreciate this great software and it works very well, with "local account" in Windows (and idmap=user option). However, there is a probrem when I've logged on Windows with accounts linked to Microsoft account. Even with Microsoft account, sshfs -o idmap=user server:/ folder command runs successfully and I can view remote folders that everyone can see, but I cannot enter my own home directory. Apparently I am not recognized as the same owner as logged on to the server. When I tried to open my home directory in explorer.exe, it shows a message "Click Continue to permanently get access to this folder". When I click continue, the permission of my home directory is forcibly changed. In my observation, 701 was changed to 661 and 711 to 771 (in the latter case, I can see the content of the directory, but too open permission is another problem (e.g. ssh login fails)). For me this is not so urgent a problem because I don't need Microsoft account anymore and have only to delink it, but I'm curious if it is possible to use SSHFS-Win with accounts linked to Microsoft accounts.

ge9 commented 3 years ago

I read https://issueexplorer.com/issue/billziss-gh/winfsp/204 and specified gid=0 option (0 can be any numbers other than -1). It works fine with Microsoft account!