WebDAV – Part 1

create-webdav-share6
Linux, , ,

davfs2 rpm build for : CentOS 6

Name : davfs2
Version : 1.4.7 Vendor : obs://build_opensuse_org/home:sawaa
Release : 0.2.el6.1 Date : 2012-12-12 17:14:20
Group : System Environment/Kernel Source RPM : davfs2-1.4.7-0.2.el6.1.src.rpm
Size : 0.29 MB
Packager : (none)
Summary : FUSE-Filesystem to access WebDAV servers
Description :

davfs2 is a FUSE file system driver that allows you to mount a WebDAV server
as a local file system, like a disk drive. This way applications can access
resources on a Web server without knowing anything about HTTP or WebDAV.

davfs2 runs as a daemon in userspace. It uses the kernel file system coda or
fuse. Most probably your Linux kernel includes at least one of this file
systems. To connect to the WebDAV server it makes use of the neon library.
Neon supports TLS/SSL (using OpenSSL or GnuTLS) and access via proxy server.

http://rpm.pbone.net/index.php3/stat/4/idpl/23698666/dir/centos_6/com/davfs2-1.4.7-0.2.el6.1.x86_64.rpm.html

 

ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/sawaa/CentOS_CentOS-6/x86_64/davfs2-1.4.7-0.2.el6.1.x86_64.rpm

A)

wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/sawaa/CentOS_CentOS-6/x86_64/davfs2-1.4.7-0.2.el6.1.x86_64.rpm
rpm -ivh davfs2-1.4.7-0.2.el6.1.x86_64.rpm

B)

mount -t davfs    https://url_tld/directory/      /mnt/where_to_mount

Please enter the username to authenticate with server
https://url_tld/directory/ or hit enter for none.
Username: user_name
Please enter the password to authenticate user user_name with server
https://url_tld/directory/ or hit enter for none.
Password:

 

C) how to auto-mount

– Edit /etc/fstab  adding

https://url_tld/directory/          /mnt/opendrive       davfs    defaults     0 0

 

– Add https://url_tld/directory/ account information into /etc/davfs2/secrets using text editor:
https://url_tld/directory/         user_name               user_pass

Notes: If you use special characters in your password use a forward slash in front of the special character

Sample if you have # in pass:

https://url_tld/directory/         user_name               abcd\#abcd

 

– Change the lock mechanism of mounted filesystem. Open /etc/davfs2/davfs2.conf and find following value:

#use_locks 1
And change to:

use_locks 0

then uncomment

dav_group       davfs2

Anexa:

 

ftp.pbone.net davfs2-1.4.7-0.2.el6.1.x86_64.rpm

Provides :
config(davfs2)
fuse-davfs2
davfs2
davfs2(x86-64)

Requires :
/bin/sh
config(davfs2) = 1.4.7-0.2.el6.1
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libneon.so.27()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
Content of RPM :
/etc/davfs2/certs
/etc/davfs2/certs/private
/etc/davfs2/davfs2.conf
/etc/davfs2/secrets
/sbin/mount.davfs
/sbin/umount.davfs
/usr/share/davfs2
/usr/share/davfs2/davfs2.conf
/usr/share/davfs2/secrets
/usr/share/doc/davfs2-1.4.7
/usr/share/doc/davfs2-1.4.7/AUTHORS
/usr/share/doc/davfs2-1.4.7/BUGS
/usr/share/doc/davfs2-1.4.7/COPYING
/usr/share/doc/davfs2-1.4.7/FAQ
/usr/share/doc/davfs2-1.4.7/INSTALL
/usr/share/doc/davfs2-1.4.7/NEWS
/usr/share/doc/davfs2-1.4.7/README
/usr/share/doc/davfs2-1.4.7/README.translators
/usr/share/doc/davfs2-1.4.7/THANKS
/usr/share/doc/davfs2-1.4.7/TODO
/usr/share/doc/davfs2-1.4.7/davfs2.conf
/usr/share/doc/davfs2-1.4.7/secrets
/usr/share/locale/cs/LC_MESSAGES/davfs2.mo
/usr/share/locale/de/LC_MESSAGES/davfs2.mo
/usr/share/man/de/man5/davfs2.conf.5.gz
/usr/share/man/de/man8/mount.davfs.8.gz
/usr/share/man/de/man8/umount.davfs.8.gz
/usr/share/man/es/man5/davfs2.conf.5.gz
/usr/share/man/man5/davfs2.conf.5.gz
/usr/share/man/man8/mount.davfs.8.gz

 

Get Updates LIKE THIS IN YOUR INBOX (it's free):
Sign up and get Real Tests, Free Vouchers, Goodies