Package: davfs2 Version: 1.4.6-1.1 Severity: normal Dear Maintainer, *** Please consider answering these questions, where appropriate ***
* What led up to the situation?
trying to use "sudo mount -t davfs" in order to avoid including more
mount points at "/etc/fstab"
* What exactly did you do (or not do) that was effective (or
ineffective)?
$ sudo mount -v -t davfs -o _netdev,noexec,nosuid,nodev,uid=user,gid=davfs2
https://www.box.net/dav /home/user/webdav/
fails without messages. (return value 1).
(no output)
$ strace -o sudo_mount sudo mount -v -t davfs -o
_netdev,noexec,nosuid,nodev,uid=user,gid=davfs2 https://www.box.net/dav
/home/user/mnt/webdav/
sudo: must be setuid root
(with strace that output is showed)
When issuing as root
#mount -v -t davfs -o _netdev,noexec,nosuid,nodev,uid=user,gid=davfs2
https://www.box.net/dav /home/user/mnt/webdav/
command works fine.
message does not depends on mount.davfs is "setuid root" or not (I
tryied both options)
-rwsr-xr-x 1 root root 125K Jan 4 19:58 /usr/sbin/mount.davfs*
sudo is setuid root
-rwsr-xr-x 2 root root 74K Jan 31 00:47 /usr/bin/sudo*
user is on group davfs2
uid=1000(user) gid=1000(user)
groups=1000(user),20(dialout),25(floppy),29(audio),30(dip),44(video),46(plugdev),103(fuse),108(netdev),110(davfs2),117(media),118(debian)
when following the instructions on
http://git-annex.branchable.com/tips/using_box.com_as_a_special_remote/
(by including on fstab the appropiate stanza), adding user to davfs2
group, dpkg-reconfigure davfs2 in order to setuid mount.davfs etc.
mount works but I prefer the sudo way in order to keep /etc/fstab simple.
* What was the outcome of this action?
Nothing was mounted.
Attached output of strace sudo_mount
sudo_mount
Description: Binary data
* What outcome did you expect instead? davfs2 mounted Thank you for your time *** End of the template - remove these lines *** -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages davfs2 depends on: ii adduser 3.113+nmu1 ii debconf [debconf-2.0] 1.5.42 ii libc6 2.13-32 ii libneon27-gnutls 0.29.6-3 davfs2 recommends no packages. davfs2 suggests no packages. -- Configuration Files: /etc/davfs2/secrets [Errno 13] Permission denied: u'/etc/davfs2/secrets' -- debconf-show failed

