Difference between revisions of "Webdav"
(→Mount you ownCloud) |
(→Mount you ownCloud) |
||
Line 9: | Line 9: | ||
</source> | </source> | ||
− | ==Mount | + | ==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. | 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. | ||
Revision as of 20:57, 23 April 2013
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.
As root:
$ 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/files/webdav.php 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/files/webdav.php
again YourServer.Domain shall be fixed to reflect your setup.
Try it:
$ service autofs stop #Stop any running 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 roor console everything is fine, otherwise debug until it works.
Stop the automount by pressing Ctrl+C.
No restart the autofs
$service autofs start
If needed see Sshfs for details about how to setup autofs.