mount.davfs with user option cannot write to mtab

General support questions
Post Reply
Tronde
Posts: 18
Joined: 2016/01/16 12:30:10

mount.davfs with user option cannot write to mtab

Post by Tronde » 2017/05/28 18:56:47

Good evening,

I'm using davfs2 version 1.4.7 from epel to mount webdav resources. The entry in the /etc/fstab looks as follows:

Code: Select all

https://webdav.mediencenter.t-online.de/ /home/tronde/Mediencenter davfs user,rw,noauto 0 0
After running

Code: Select all

mount Mediencenter
as the ordinary user 'tronde' I got the following warning:

Code: Select all

/sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
I'm sure this is because /etc/mtab is a symbolic link to the read-only file /proc/self/mounts. The issue with this, the user mounting the resource is not allowed to unmount it. So I use the options 'users' instead. Now I'm able to mount and unmount the resource with the same ordinary user but I still get the warning mentioned above.

Is there any way to get rid of this warning?

Regards,
Tronde

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: mount.davfs with user option cannot write to mtab

Post by aks » 2017/05/30 17:53:19

mount Mediencenter > /dev/null 2>&1 ?
(without the question mark).

Tronde
Posts: 18
Joined: 2016/01/16 12:30:10

Re: mount.davfs with user option cannot write to mtab

Post by Tronde » 2017/05/31 06:32:24

Well, that would cure the symptom but not the cause.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: mount.davfs with user option cannot write to mtab

Post by aks » 2017/05/31 16:37:02

Yes it does cure the symptom. The way to cure the cause is to file a bug report with the project (and I guess that it would probably be given lower priority given it's functionally fine).

Tronde
Posts: 18
Joined: 2016/01/16 12:30:10

Re: mount.davfs with user option cannot write to mtab

Post by Tronde » 2017/05/31 17:06:40

Would Fedora EPEL on https://bugzilla.redhat.com be the appropriate place to file a bug report?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: mount.davfs with user option cannot write to mtab

Post by aks » 2017/05/31 17:25:59

I don't really know, perhaps against the actual project? A quick google suggests it's on Savannah (http://savannah.nongnu.org/projects/davfs2) with only one guy doing it! So http://savannah.nongnu.org/bugs/?group=davfs2 seems to be the place (I guess you could also log it with EPEL, just so that they know - if they don't care they'll soon close the report).

Mind, it's quite likely that the version on EPEL is older than the version on Savannah and it quite likely that the project member will want you to test with the latest code.

Tronde
Posts: 18
Joined: 2016/01/16 12:30:10

Re: mount.davfs with user option cannot write to mtab

Post by Tronde » 2017/05/31 17:40:40

The current version of davfs2 is 1.5.4. If the issue don't exist in that version, is there any way to get that version in EPEL 7?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: mount.davfs with user option cannot write to mtab

Post by aks » 2017/06/01 16:22:50

Possibly, you'd have to ask EPEL (there's an FAQ on the EPEL website that I think tells you how to go about it).

Post Reply