Summary: | net-fs/davfs2-1.4.7 - User mount does not work, no entry for http://HOST/owncloud/files/webdav.php found in /etc/fstab | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Core system | Assignee: | Göktürk Yüksek <gokturk> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | ao, kripton, net-fs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Juergen Rose
2012-11-17 14:13:28 UTC
Any news? ping! I have this problem, too. It only happens if the user does not have read access to /etc/fstab. Setting no read access for fstab is not the default, I've set it because I have passwords stored in there for software called 'cloudfuse'. Since /usr/sbin/mount.davfs has SUID, I don't see it being able to read /etc/fstab as a problem. Juergen, you could probably mount it as root for now, setting uid= and gid= options to your user in /etc/fstab. This is what I've done. (In reply to comment #3) > I have this problem, too. > > It only happens if the user does not have read access to /etc/fstab. > Setting no read access for fstab is not the default, I've set it because I > have passwords stored in there for software called 'cloudfuse'. > > Since /usr/sbin/mount.davfs has SUID, I don't see it being able to read > /etc/fstab as a problem. I have the same issue not only at "lynx" but also "leopard" and everybody can read /etc/fstab: rose@leopard:/home/rose(88)$ mount /home/rose/owncloud /sbin/mount.davfs: für http://141.89.194.24/owncloud/files/webdav.php ist kein Eintrag in /etc/fstab rose@leopard:/home/rose(89)$ grep http://141.89.194.24/owncloud/files/webdav.php /etc/fstab http://141.89.194.24/owncloud/files/webdav.php /home/rose/owncloud davfs user,rw,noauto 0 0 rose@leopard:/home/rose(90)$ ll /etc/fstab -rw-r--r-- 1 root root 2535 16. Nov 15:58 /etc/fstab If I try it a little bit more explicit, I get: rose@leopard:/home/rose(91)$ mount http://141.89.194.24/owncloud/files/webdav.php /home/rose/owncloud mount: only root can do that rose@leopard:/home/rose(92)$ id uid=1203(rose) gid=1000(rose) Gruppen=1000(rose),4(adm),6(disk),7(lp),10(wheel),18(audio),19(cdrom),27(video),35(games),77(qemu),100(users),102(plugdev),106(lpadmin),245(locate),250(portage),972(davfs2),994(wireshark),995(kvm),996(vboxusers),1217(tuntap),1221(nwaccess) rose@leopard:/home/rose(93)$ /sbin/mount.davfs http://141.89.194.24/owncloud/files/webdav.php /home/rose/owncloud /sbin/mount.davfs: in /etc/fstab ist die Option „user” anders gesetzt (the option „user” is set in a different way in /etc/fstab) root@leopard:/root(279)# ll /sbin/mount.davfs lrwxrwxrwx 1 root root 21 Aug 24 18:58 /sbin/mount.davfs -> /usr/sbin/mount.davfs* root@leopard:/root(280)# ll /usr/sbin/mount.davfs -rws--x--x 1 root root 130624 Aug 24 18:58 /usr/sbin/mount.davfs* Even if I change the group and the permission of /usr/sbin/mount.davfs, I do not have more success: rose@leopard:/home/rose(97)$ ll /usr/sbin/mount.davfs -rwxr-x--x 1 root davfs2 130624 24. Aug 18:58 /usr/sbin/mount.davfs* rose@leopard:/home/rose(98)$ mount /home/rose/owncloud mount: only root can mount http://141.89.194.24/owncloud/files/webdav.php on /home/rose/owncloud rose@leopard:/home/rose(99)$ id uid=1203(rose) gid=1000(rose) Gruppen=1000(rose),4(adm),6(disk),7(lp),10(wheel),18(audio),19(cdrom),27(video),35(games),77(qemu),100(users),102(plugdev),106(lpadmin),245(locate),250(portage),972(davfs2),994(wireshark),995(kvm),996(vboxusers),1217(tuntap),1221(nwaccess) (In reply to comment #4) > Juergen, you could probably mount it as root for now, setting uid= and gid= > options to your user in /etc/fstab. > This is what I've done. I switched back with group and permission of /usr/sbin/mount.davfs and tried to set uid= and gid= in /etc/fstab, it still fails: rose@leopard:/home/rose(105)$ ll /sbin/mount.davfs lrwxrwxrwx 1 root root 21 24. Aug 18:58 /sbin/mount.davfs -> /usr/sbin/mount.davfs* rose@leopard:/home/rose(106)$ ll /usr/sbin/mount.davfs -rws--x--x 1 root root 130624 24. Aug 18:58 /usr/sbin/mount.davfs* rose@leopard:/home/rose(107)$ mount /home/rose/owncloud /sbin/mount.davfs: für http://141.89.194.24/owncloud/files/webdav.php ist kein Eintrag in /etc/fstab rose@leopard:/home/rose(108)$ grep http://141.89.194.24/owncloud/files/webdav.php /etc/fstab http://141.89.194.24/owncloud/files/webdav.php /home/rose/owncloud davfs uid=root,gid=davfs2,user,rw,noauto 0 0 Any news? Two month later I still have the issue. Is here anybody, who is able to /sbin/mount.davfs as ordinary user? Yes, I'm able to mount and unmount as ordinary user. mount command: mount /mnt/yandex unmount command: fusermount -u /mnt/yandex fstab entry: https://webdav.yandex.ru /mnt/yandex davfs rw,user,noauto,uid=rondo,gid=rondo 0 0 And I store the password in /etc/davfs2/secrets, not in $HOME. The file has these modes: -rw------- 1 root root 2696 2月 13 17:58 /etc/davfs2/secrets |