Directly manipulate data on server

Hi all,

I would like to give another service (on the same machine) acces to my data directory.

Is this possible? Is this exactly the same as giving the service access through WebDav? Are unwanted side effects possible here?

Thanks in advance for your input.

UPDATE: I believe this should be possible if I create a ‘local’ external storage.

Hey,

i found / have read the following in Is it possible to autoupdate thumbnails after files are modified? in the past which seems to be an answer for your questions:

Hi,

Thank you very much. I found similar info on the internet.

1 Like

Accessing via webDAV is definitely the way to go. Your service could access to external storages transparently, and take advantage of additional services ownCloud could provide, such as encryption or antivirus (if they’re configured)

Note that the “local” external storage is dangerous if it’s misused, that’s why it’s disabled by default. It could be fine if you set it up to access to files out of the reach of the web server, but I don’t think this is your goal.

Is there any information about why it could be dangerous?

Technically you can mount any place in the host as long as it’s accesible by the web server.
You could mount the root, so anyone who can access to the configured local external storage could see and download any file in the host, potentially getting access to sensitive information.
You could also mount the web server location, which could potentially allow you to change the code by uploading modified files there. This could easily break ownCloud, or be a huge security risk.

Obviously, you can use it properly, and mount folders such as “/opt” or “/mnt”, assuming they’re prepared to be used as such. On the other hand, it’s weird you need to access to the local FS out of the ownCloud’s data directory, and if you do, it might be a better option to use SFTP or SMB protocols and use specific accounts as if you’re accessing remotely to those files.

1 Like

Thank you very much.

In this case my plex media server needs access to the files. If I would do this with webdav, the server will first download the whole video file before it can be played.

Are you sure? Maybe it’s a limitation on your plex. As far as I know, the contents can be streamed from ownCloud without downloading the whole video. You can double-check with a different player.

1 Like

I indeed believe that it is a limitation of plex (with VLC no problem). I did not yet try it myself, but that is the information I found on the internet. I’m currently waiting for some new hardware, when this arrives I will give it a try.

Hi again,

I tested this out. Getting access to the plex media over webdav is not possible. It seems indeed like he needs te download the whole files before even being able to add them to the library. I guess this is a limitation of davfs2.

With the local external storage it seems to work fine.