sshfs-win icon indicating copy to clipboard operation
sshfs-win copied to clipboard

Destination folder access denied

Open gitsang opened this issue 4 years ago • 4 comments

I have installed

  • sshfs-win-3.5.20357-x64.msi
  • winfsp-1.9.21096.msi

Then mount sshfs "Map network drive" Snipaste_2021-06-03_10-14-05.png

Mount is success, I can read file, but can not write or create file. Snipaste_2021-06-03_10-15-25.png

Used "Get-Acl"

PS Z:\> Get-Acl

    Directory:

Path Owner               Access
---- -----               ------
Z:\  NT AUTHORITY\SYSTEM Everyone Allow  ReadAndExecute, Synchronize...

If I change owner Snipaste_2021-06-03_10-44-00.png Snipaste_2021-06-03_10-44-15.png

gitsang avatar Jun 03 '21 02:06 gitsang

But I can write or create file from other PC (Using same version of software, and using same way to mount) Snipaste_20210603_102443.png

gitsang avatar Jun 03 '21 02:06 gitsang

C:\Windows\system32>"C:\Program Files (x86)\WinFsp\bin\fsptool-x64.exe" perm Y:\
O:SYG:SYD:P(A;;0x1f01b9;;;SY)(A;;0x1200a9;;;SY)(A;;0x1200a9;;;WD) (perm=18:18:0555)

C:\Windows\system32>"C:\Program Files (x86)\WinFsp\bin\fsptool-x64.exe" id 18
S-1-5-18(NT AUTHORITY\SYSTEM) (uid=18)

#27

gitsang avatar Jun 11 '21 08:06 gitsang

I have exactly the same problem.

I am logged in as root (\\sshfs.r\root@<ip>) and have the necessary rights to create files. Deleting files or folders works, but not creating a new file or folder. I can't even access the root folder under: /root. When I use FileZilla everything works fine.

I'm using Ubuntu 20.04 server. And in the sshd_config I use: PermitRootLogin yes

I would be very happy if I could get the whole thing to run under Windows and it's very nice that it is integrated into Windows File Explorer because i don't like extra programs.

Thanks and contact me.

Mqxx avatar Jul 19 '21 16:07 Mqxx

Same problem. I am in a company network, and using Hyper-v(ubuntu 20.04) as my linux server.

chouzz avatar Nov 25 '21 11:11 chouzz