sshfs-win
sshfs-win copied to clipboard
Creating a windows directory causes duplicate folders (New Folder(x)) to be created.
I am using the latest SSHFS-Win 2020.1 Beta1 against windows 10 2004 (and WinFsp 2020.2 Beta2)
When I try to create a new folder on a remote drive, It doesn't ask me what folder name to create and it looks like nothing happens. However, if I refresh the page, I see it created 4 folders.
New Folder New Folder(2) New Folder(3) New Folder(4)
Any idea?
Same behavior here, did you tried to create a folder from Windows cmd? Something like "md folder". In my case it will return an Access denied message, but the folder is created. Trying to create a new file with "echo 'hello' > hello.txt" will return the same access denied message but in this case, the file is created empty, with no data inside.
Did you try to use idmap=user, uid=-1, gid=-1 ?
@zacaro In my registry, I had changed the following (sshfs.k) so that the permissions are set properly on the server.
svc %1 %2 %U -oreconnect -oStrictHostKeyChecking=no -oPasswordAuthentication=no -oBatchMode=yes -oUserKnownHostsFile=/dev/null -oCompression=yes -oumask=000 -ocreate_umask=000
I also upgraded WinFSP to WinFsp 2021 Beta1 see if it fixed the issue but nothing.
@zacaro I tried changing it to
svc %1 %2 %U -oreconnect -oStrictHostKeyChecking=no -oPasswordAuthentication=no -oBatchMode=yes -oUserKnownHostsFile=/dev/null -oCompression=yes -oidmap=user,uid=-1,gid=-1
And still the same issue. I did try the "md folder" from the command line and it did return an access denied and I created a new file with "echo 'hello' > hello.txt" will return the same access denied message but the file was also created with no data inside.
It's very strange that I have an another desktop machine with the same versions of WinFSP+WINSSHFS+Same Windows version and settings and it doesn't have this issue at all. [Not even the 'access denied' messages when creating a directory or a new file]
Same here, I'm experiencing this behavior on Windows Server 2012 Datacenter, but in a regular Windows 10 machine there is no issue at all, same config, same user, same RSA... weird. There must exist some differences in how Windows Server and 10 handles the permissions.
I've added more info on the issue I opened here #250
same problem
After reading this https://github.com/winfsp/sshfs-win/issues/347, I have impression there are currently no plans to continue actively develop this project. So I had to move on to something better. In case somebody needs sshfs/sftp implementation which just works, I suggest RClone (it is free and open source), check my answer at ServerFault for more details and how to use it: https://serverfault.com/a/1105428/393105.
solution: https://github.com/winfsp/winfsp/issues/357#issuecomment-1693873684