winfsp / sshfs-win

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

Force mount read-only #164

Open darko1979 opened 4 years ago

darko1979 commented 4 years ago

I have been trying to mount a remote linux home folder on Windows 10. I mounted it successfully through explorer map network drive but I want to prevent any accidental writes/deletes on that mounted drive. I tried to mount it manually through command line and specify "-o ro" option but it said invalid options. Changing security options for mapped drive through explorer was not a good idea, initially I thought it was not working (threw errors about not being able to enumerate objects) but it somehow messed up access rights to linux home folder. Every search about read-only is about users who have a problem that their mounted drive is read-only and want to fix it not being read-only. I need opposite of that. When using SiriKali there is a read-only checkbox but it's disabled. Any suggestions how to mount it read-only?

billziss-gh commented 4 years ago

Unfortunately WinFsp does not currently support true read-only functionality and relies on the file system to do it.

Related: billziss-gh/winfsp#84