title: How do I make a simple public read-only WebDAV server with SabreDAV?
body: <p>I recently began looking into WebDAV, as I found it to be an option for letting me play a Blu-ray folder remotely - i.e. without requiring the viewer to download the whole 24gb ISO first.</p>
  
  <p><strong>Add a WebDAV source in Kodi v18 to a Blu-ray folder - and it actually plays! Very awesome.</strong></p>
  
  <p>The server can also be mounted on Windows with</p>
  
  <pre><code>net use m: http://example.com/webdavfolder/
  </code></pre>
  
  <p>or in Linux with</p>
  
  <pre><code>sudo mount -t davfs http://example.com/webdavfolder/ /mnt/mywebdav
  </code></pre>
  
  <p>-and should then (in theory) play with any software media players that supports Blu-ray Disc Java (BD-J), such as <strong>PowerDVD</strong> and <strong>VLC</strong>.</p>
  
  <pre><code>vlc bluray:///mnt/mywebdav --bluray-menu
  PowerDVD.exe AUTOPLAY BD m:
  </code></pre>
  
  <p>(Unless of course time-out values has been set too low, which seems to be the case for VLC at the moment).</p>
  
  <p>Anyway, all this is great, except I can't figure out how to make my WebDAV server <strong>read-only</strong>. Currently anyone can delete files as they wish, and that's of course not optimal.</p>
  
  <p>So far I've only experimented with SabreDAV, because afaik that's the only option I have if I want to keep using my existing webhost. Trying with very minimal setups, because I've read that minimal setups should default to a read-only solution. It just doesn't seem to happen.</p>
  
  <p>I initially used the setup from <a href="http://sabre.io/dav/gettingstarted/" rel="nofollow noreferrer">http://sabre.io/dav/gettingstarted/</a> and tried removing some lines. Also tried calling <code>chmod 0444 MainFolder -R</code> on the webserver. And I can see that everything does get a read-only attribute. But it changes nothing. It's still possible to delete whatever I want. :-(</p>
  
  <p>What am I missing?</p>
  
  <p>Maybe I'm using the wrong technology for what I want to do? Is there some other/better way of offering a Blu-ray folder for remote viewing? (One that includes the whole experience - i.e. full Java menus etc).</p>
  
  <p><em>I should probably mention that all of this is of course perfectly legal. It is my own Blu-ray project - not copyright material.</em></p>
  
  <p><em>Also: Difficult to decide if this belongs on StackOverflow or SuperUser. I ended up posting it on StackOverflow because SabreDAV is about coding, and because there's no sabredav tag on SuperUser.</em></p>