WebDAV is a convenient way of handling file access through a webserver.
In order to access WebDAV drives you need to have the appropriate file system software installed.
$ yum install davfs
Mount your ownCloud
If you have a owncloud service available you can mount it using automount. Automount or autofs will automagically mount the exported webdav drive when you access the mount point.
Create a mount point as the login user you normally uses.
$mkdir -p /home/YourLogin/mounts/owncloud
As root add to the /etc/davfs2/secrets this line:
http://owncloud.YourServer.Domain/remote.php/webdav YourUserName YourPassword
changing YourServer.Domain, YourUserName and YourPassword with the ones that reflects your setup.
Then in /etc/auto.master add a line like this:
/home/YourLogin/mounts/owncloud /etc/auto.owncloud.davfs uid=1000,gid=1000,--timeout=600,--ghost
again modify YourLogin with your login name.
Create the file /etc/auto.owncloud.davfs and add this:
m -fstype=davfs,rw,dir_mode=0777,file_mode=0666 :http\://owncloud.YourServer.Domain/remote.php/webdav
again YourServer.Domain shall be fixed to reflect your setup.
$] service autofs stop #Stop any running autofs service $] automount -f -v
or when systemd has the command over your PC
$] systemctl stop autofs.service $] automount -f -v
First observe that no errors are issued. The in another console try to access the mount point. If no error are shown in the root console everything is fine, otherwise debug until it works.
Stop the automount by pressing Ctrl+C.
Now restart the autofs (if on an older SystemV installation)
$] service autofs start
or when systemd has the command
$] systemctl enable autofs.service $] systemctl start autofs.service
If needed see Sshfs for details about how to setup autofs.
Enter your credentials in /etc/davfs2/secrets as mentioned above. Box.net's share is https://dav.box.com/dav
Create an entry in auto.master as described above, using the Box address instead.
Create the auto.box.davfs file with content similar to the above.
I ran into several problems having SELinux preventing access to the cache files. I finally sovled the problem by issuing a rm -rf * in the /var/cache/davfs/ directory. The "left-overs" from the manual mounting was with root privileges where the user privileges are needed when letting autofs doing the job.