summaryrefslogtreecommitdiff
path: root/system/davfs2/MINI_HOWTO
diff options
context:
space:
mode:
Diffstat (limited to 'system/davfs2/MINI_HOWTO')
-rw-r--r--system/davfs2/MINI_HOWTO74
1 files changed, 30 insertions, 44 deletions
diff --git a/system/davfs2/MINI_HOWTO b/system/davfs2/MINI_HOWTO
index e7f6914f51..698c4151c9 100644
--- a/system/davfs2/MINI_HOWTO
+++ b/system/davfs2/MINI_HOWTO
@@ -8,97 +8,83 @@ Amend as required for your choice of username.
2. Define a davfs2 group and user:
# groupadd -g 230 davfs2
- # useradd -u 230 -d /var/cache/davfs2 -g davfs2 davfs2
+ # useradd -u 230 -d /var/cache/davfs2 -g davfs2 -s /bin/false davfs2
-3. If (and only if) you have a Slack64 install;
- # export ARCH=x86_64
-
-4. You may want to set the Package type that you will build:
- # export PKGTYPE=txz
-
-5. Build and install your package:
- # tar xvf davfs2.tar.gz
- # cd davfs2
- # wget http://ftp.cc.uoc.gr/mirrors/nongnu.org/davfs2/davfs2-1.4.6.tar.gz
- # ./davfs.SlackBuild
- # installpkg /tmp/davfs2-1.4.5-x86_64-2_SBo.txz
+3. Build and install davfs2 as usual.
-6. Add the user if not already defined. My user shall be called user, so:
+4. Add the user if not already defined. My user shall be called chris, so:
- # adduser user
+ # adduser chris
Read the Slackbook for more details on adduser, choose default settings BUT:
with the default group list add also davfs2:
Press ENTER to continue without adding any additional groups
Or press the UP arrow to add/select/edit additional groups
- : audio cdrom floppy plugdev video power netdev davfs2
+ : audio cdrom floppy plugdev video power netdev lp scanner davfs2
If the user was already defined, then add davfs2 to the groups:
- # usermod -ga davfs2 user
+ # usermod -aG davfs2 chris
-7. Edit /etc/fstab with the following line:
+5. Edit /etc/fstab with the following line:
WEBDAV_SERVER_URL mount_point davfs noauto,user 0 0
For example:
- https://example.org/user /home/user/mnt/dav davfs noauto,user 0 0
+ https://example.org/chris /home/chris/mnt/dav davfs noauto,user 0 0
-8. logout
+6. logout
-9. Login again as your davfs user ("user" in my case).
+7. Login again as your davfs user ("chris" in my case).
-10. $ mkdir -p $HOME/.davfs2/certs/private/ $HOME/mnt/dav
+8. $ mkdir -p $HOME/.davfs2/certs/private/ $HOME/mnt/dav
-11. Move the certificate to $HOME/davfs2/certs/private and restrict the permission to rw-------:
- For example:
+9. Move the certificate to $HOME/davfs2/certs/private and restrict the permission to rw-------:
+ For example:
$ mv CERTIFICATE.pfx $HOME/.davfs2/certs/private/
- $ chmod 600 $HOME/.davfs2/certs/private/CERIFICATE.pfx
+ $ chmod 600 $HOME/.davfs2/certs/private/CERIFICATE.PFX
-12. Optionally: Switch user to root and copy the system configuration file.
- Then change ownership to the davfs user and exit back to the davfs user. There
- are a lot of interesting comments in these files that might be helpful.
+10. Optionally: Copy the system configuration file. There are a lot of
+ interesting comments in these files that might be helpful.
- $ su -
- # cp /etc/davfs2/davfs2.conf ~user/.davfs2/
- # cp /etc/davfs2/secrets ~user/.davfs2/
- # chown -R user:users ~user/.davfs2/
- # exit
+ $ cp /usr/share/davfs2/* $HOME/.davfs2/
-13. Edit $HOME/.davfs2/davfs2.conf with the following line:
+11. Edit $HOME/.davfs2/davfs2.conf with the following line:
- clientcert ~/.davfs2/certs/private/CERTIFICATE.pfx
+ clientcert ~/.davfs2/certs/private/CERTIFICATE.PFX
Read:
$ man davfs2.conf
- for all the details and options. Tests have shown that you do not need more
- than the line above, but you may want to set many other interesting
- parameters.
+ for all the details and options. Tests have shown that you might need more
+ than the line above, so you may want to read about other interesting
+ parameters, e.g.:
+
+ add_header Translate F
-14. Edit $HOME/.davfs2/secrets with the following 2 lines:
+12. Edit $HOME/.davfs2/secrets with the following 2 lines:
- /home/user/mnt/dav username password
- CERTIFICATE.pfx passphrase
+ /home/chris/mnt/dav username password
+ CERTIFICATE.PFX passphrase
The username and password are relevant to the Webdav server, not for the
local account.
passphrase is the password for the PFX certificate
You should obtain all these from the Webdav server Administrator
-15. Restrict permssion for $HOME/.davfs2/secrets to rw-------:
+13. Restrict permssion for $HOME/.davfs2/secrets to rw-------:
$ chmod 600 $HOME/.davfs2/secrets
-16. Mount the davfs service on $HOME/mnt/dav
+14. Mount the davfs service on $HOME/mnt/dav
$ mount https://example.org/user
You should be able to see your WEBDAV server on $HOME/mnt/user
-17. When you would like to disconnect:
+15. When you would like to disconnect:
$ umount $HOME/mnt/dav