winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.07k stars 254 forks source link

Wrong Permissions on new Files #378

Open DoinStuff35 opened 1 year ago

DoinStuff35 commented 1 year ago

Hey there!

Worked on this for 3 days...guess i need some help.

Goal: Mounting S-FTP Folder on local System as drive/folder.

Setup: Virtual Win Server 2022 with OpenSSH on the internet, on local side a Win 10 PC with WinFSP 2022.2, SSHFS-Win 2021.1 Beta 2 and SiriKali 1.5.0

What works: Connecting with FileZilla; full control over S-FTP

Problem: If I mount the S-FTP on my local PC (whether directly via the Explorer or via SiriKali), I can upload or create files, but I cannot rename nor delete them! Which makes the whole thing pretty pointless...

What i´ve tried: Messing around with sshfs-options like over here #180 . Did not help. But it is interesting that I can at least rename self-created folders with the option "idmap=user".

Here´s my sshd config:

` AuthorizedKeysFile .ssh/authorized_keys ChrootDirectory C:\Users\x_user\SFTP Subsystem sftp sftp-server.exe

Match Group administrators AuthorizedKeysFile PROGRAMDATA/ssh/administrators_authorized_keys

Added for Security Reasons

AllowUsers x_user AllowAgentForwarding no AllowTcpForwarding no GatewayPorts no `

The Folder "SFTP" is owned by the User "x_user"

With FileZilla i can see, that all Files on S-FTP have the Permission 600. But cannot change them with FileZilla, always stays 600.

Any help??? Thought S-FTP would be a safe and easy way to get a secure "Internet Drive".

Thanks!