Hi,
I am trying to mount a Box.com share using Fedora 24. I install davfs2 using dnf and try the following:
sudo ./mount-box.sh
where mount-box.sh contains the following:
mount -t davfs https://dav.box.com/dav /mnt/box -o rw,user,noauto,uid=USER,file_mode=600,dir_mode=700
(In the above USER is my user on my local machine.)
I then try out the following:
$ sudo ./mount-box.sh Please enter the username to authenticate with server https://dav.box.com/dav or hit enter for none. Username: USERNAME Please enter the password to authenticate user USERNAME with server https://dav.box.com/dav or hit enter for none. Password: /sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
Thus, I am able to mount it anyway, however, as user, I do not have any read or write access. I can not even see the directory as a mortal user. Root of course, has full access. Btw, df has it listed:
.... https://dav.box.com/dav fuse 910T 12K 910T 1% /mnt/box
So, my question is: how do I mount such that I get read-write access as a mortal user?
Thanks very much for your time and help in answering this question!
Best wishes, Ranjan
____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
I seem to have perhaps unwittingly sort of solved this problem:
I have done the following:
1. sudo mkdir -m 755 /mnt/box
2. then set:
use_locks 0
in:
/etc/davfs2/davfs2.conf
3. sudo mount -t davfs https://dav.box.com/dav /mnt/box -o rw,user,noauto,uid=USER,file_mode=600,dir_mode=700
Please enter the username to authenticate with server https://dav.box.com/dav or hit enter for none. Username: USERNAME Please enter the password to authenticate user USERNAME with server https://dav.box.com/dav or hit enter for none. Password: /sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
I still get the warning, but now I am able to read and write to it. (The only change I did from what I was doing previously is that I explicitly set my mode to be -m 755 while mkdir-ing /mnt/box.)
I certainly would like the warning to go away, so any suggestions to that effect would be appreciated!
Many thanks and best wishes, Ranjan
On Sat, 9 Jul 2016 00:00:00 -0500 Ranjan Maitra maitra.mbox.ignored@inbox.com wrote:
Hi,
I am trying to mount a Box.com share using Fedora 24. I install davfs2 using dnf and try the following:
sudo ./mount-box.sh
where mount-box.sh contains the following:
mount -t davfs https://dav.box.com/dav /mnt/box -o rw,user,noauto,uid=USER,file_mode=600,dir_mode=700
(In the above USER is my user on my local machine.)
I then try out the following:
$ sudo ./mount-box.sh Please enter the username to authenticate with server https://dav.box.com/dav or hit enter for none. Username: USERNAME Please enter the password to authenticate user USERNAME with server https://dav.box.com/dav or hit enter for none. Password: /sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
Thus, I am able to mount it anyway, however, as user, I do not have any read or write access. I can not even see the directory as a mortal user. Root of course, has full access. Btw, df has it listed:
.... https://dav.box.com/dav fuse 910T 12K 910T 1% /mnt/box
So, my question is: how do I mount such that I get read-write access as a mortal user?
Thanks very much for your time and help in answering this question!
Best wishes, Ranjan
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On Sat, Jul 09, 2016 at 09:25:49AM -0500, Ranjan Maitra wrote:
I seem to have perhaps unwittingly sort of solved this problem:
I have done the following:
sudo mkdir -m 755 /mnt/box
then set:
use_locks 0
in:
/etc/davfs2/davfs2.conf
- sudo mount -t davfs https://dav.box.com/dav /mnt/box -o rw,user,noauto,uid=USER,file_mode=600,dir_mode=700
Please enter the username to authenticate with server https://dav.box.com/dav or hit enter for none. Username: USERNAME Please enter the password to authenticate user USERNAME with server https://dav.box.com/dav or hit enter for none. Password: /sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
I still get the warning, but now I am able to read and write to it. (The only change I did from what I was doing previously is that I explicitly set my mode to be -m 755 while mkdir-ing /mnt/box.)
I certainly would like the warning to go away, so any suggestions to that effect would be appreciated!
Is /etc/mtab a file or a symlink to /proc/mounts? The mount manpage says it should be the link due to userspace problems.
Alrernatively, add 2> /dev/null or use --no-mtab.
jon
Hi Jon,
On Sat, 9 Jul 2016 13:26:48 -0400 Jon LaBadie jonfu@jgcomp.com wrote:
On Sat, Jul 09, 2016 at 09:25:49AM -0500, Ranjan Maitra wrote:
I seem to have perhaps unwittingly sort of solved this problem:
I have done the following:
sudo mkdir -m 755 /mnt/box
then set:
use_locks 0
in:
/etc/davfs2/davfs2.conf
- sudo mount -t davfs https://dav.box.com/dav /mnt/box -o rw,user,noauto,uid=USER,file_mode=600,dir_mode=700
Please enter the username to authenticate with server https://dav.box.com/dav or hit enter for none. Username: USERNAME Please enter the password to authenticate user USERNAME with server https://dav.box.com/dav or hit enter for none. Password: /sbin/mount.davfs: Warning: can't write entry into mtab, but will mount the file system anyway
I still get the warning, but now I am able to read and write to it. (The only change I did from what I was doing previously is that I explicitly set my mode to be -m 755 while mkdir-ing /mnt/box.)
I certainly would like the warning to go away, so any suggestions to that effect would be appreciated!
Is /etc/mtab a file or a symlink to /proc/mounts? The mount manpage says it should be the link due to userspace problems.
Alrernatively, add 2> /dev/null or use --no-mtab.
I tried -n for --no-mtab, but there was no difference. Note that the --no-mtab option was strangely not recognized.
Many thanks, Ranjan
jon
Jon H. LaBadie jonfu@jgcomp.com
users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On 07/09/2016 12:21 PM, Ranjan Maitra wrote:
I tried -n for --no-mtab, but there was no difference. Note that the --no-mtab option was strangely not recognized.
Was there an error message about an unrecognized option or was it simply ignored?
On Sat, 9 Jul 2016 13:01:45 -0700 Joe Zeff joe@zeff.us wrote:
On 07/09/2016 12:21 PM, Ranjan Maitra wrote:
I tried -n for --no-mtab, but there was no difference. Note that the --no-mtab option was strangely not recognized.
Was there an error message about an unrecognized option or was it simply ignored?
Sorry, with "-n" there was no error message, only the same warning about not writing to mtab as before.
With "--no-mtab" I got: Unknown option no-mtab.
Which contradicts the mount page, but then it is not an option with mount.davfs.
Many thanks, Ranjan
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On Sat, Jul 09, 2016 at 02:21:05PM -0500, Ranjan Maitra wrote:
Hi Jon,
On Sat, 9 Jul 2016 13:26:48 -0400 Jon LaBadie jonfu@jgcomp.com wrote:
On Sat, Jul 09, 2016 at 09:25:49AM -0500, Ranjan Maitra wrote:
I seem to have perhaps unwittingly sort of solved this problem:
...
I still get the warning, but now I am able to read and write to it. (The only change I did from what I was doing previously is that I explicitly set my mode to be -m 755 while mkdir-ing /mnt/box.)
I certainly would like the warning to go away, so any suggestions to that effect would be appreciated!
Is /etc/mtab a file or a symlink to /proc/mounts? The mount manpage says it should be the link due to userspace problems.
Alrernatively, add 2> /dev/null or use --no-mtab.
I tried -n for --no-mtab, but there was no difference. Note that the --no-mtab option was strangely not recognized.
Many thanks, Ranjan
What about /etc/mtab. Is it a file or a link?????
BTW On my system /etc/mtab -> /proc/self/mounts despite what the manpage says about pointing to /proc/mounts. It is "not wrong" however, my /proc/mounts also points to /proc/self/mounts.
Jon
On Sat, 9 Jul 2016 17:24:40 -0400 Jon LaBadie jonfu@jgcomp.com wrote:
On Sat, Jul 09, 2016 at 02:21:05PM -0500, Ranjan Maitra wrote:
Hi Jon,
On Sat, 9 Jul 2016 13:26:48 -0400 Jon LaBadie jonfu@jgcomp.com wrote:
On Sat, Jul 09, 2016 at 09:25:49AM -0500, Ranjan Maitra wrote:
I seem to have perhaps unwittingly sort of solved this problem:
...
I still get the warning, but now I am able to read and write to it. (The only change I did from what I was doing previously is that I explicitly set my mode to be -m 755 while mkdir-ing /mnt/box.)
I certainly would like the warning to go away, so any suggestions to that effect would be appreciated!
Is /etc/mtab a file or a symlink to /proc/mounts? The mount manpage says it should be the link due to userspace problems.
Alrernatively, add 2> /dev/null or use --no-mtab.
I tried -n for --no-mtab, but there was no difference. Note that the --no-mtab option was strangely not recognized.
Many thanks, Ranjan
What about /etc/mtab. Is it a file or a link?????
BTW On my system /etc/mtab -> /proc/self/mounts despite what the manpage says about pointing to /proc/mounts. It is "not wrong" however, my /proc/mounts also points to /proc/self/mounts.
Yes, indeed. The same is true for me:
lrwxrwxrwx. 1 root root 19 Feb 13 15:14 /etc/mtab -> ../proc/self/mounts
Thanks, Ranjan
____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/password-manager
On 07/09/2016 02:24 PM, Jon LaBadie wrote:
BTW On my system /etc/mtab -> /proc/self/mounts despite what the manpage says about pointing to /proc/mounts. It is "not wrong" however, my /proc/mounts also points to /proc/self/mounts.
This is because mounts are namespaced, so different processes can see a different set of mounts.