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

Creating a windows directory causes duplicate folders (New Folder(x)) to be created. #240

Open
breisig opened this issue Oct 7, 2020 · 7 comments

Comments

@breisig
Copy link

breisig commented Oct 7, 2020

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?

@zacaro
Copy link

zacaro commented Nov 17, 2020

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 ?

@breisig
Copy link
Author

breisig commented Nov 17, 2020

@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.

@breisig
Copy link
Author

breisig commented Nov 18, 2020

@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]

@zacaro
Copy link

zacaro commented Nov 18, 2020

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

@sgm456
Copy link

sgm456 commented Mar 31, 2021

same problem

@Lissanro
Copy link

After reading this #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.

@athila76
Copy link

solution: winfsp/winfsp#357 (comment)

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

No branches or pull requests

5 participants