#!/bin/sh
/usr/sbin/groupadd davfs2
/usr/sbin/useradd -g davfs2 -M -d /tmp -s /usr/sbin/nologin davfs2
echo "user ALL = NOPASSWD: /usr/sbin/mount.davfs *" >> /etc/sudoers
echo "user ALL = NOPASSWD: /bin/umount -t davfs2 *" >> /etc/sudoers
chmod u+rw,g-rwx,o-rwx /usr/etc/davfs2/secrets