On Nov 6, 2003, at 19:08, Stew Benedict wrote:



On Thu, 6 Nov 2003, Schwartz Avi wrote:


Hi,

Using 9.2.  Installed davfs and now I am trying to mount a WebDAV
share.  I am trying the following:

mount.davfs http://www.server.domain/dav /mnt/dav -u username -p
password

This is how it is described in the readme file.  This however does not
work.  I get the following error:

/mnt/dav: invalid option -- u
ERROR: problem parsing cmdline args


This:


mount.davfs http://www.server.domain/dav /mnt/dav

Generates no error, but it causes /mnt/dav to generate this error:

# ls -l /mnt
ls: /mnt/dav: Permission denied
total 3
dr-xr-xr-x   10 root     root         4096 Sep 26 04:31 cdrom/
drwxrwxrwx    0 root     root            0 Nov  6 09:32 floppy/


So, is anyone using davfs successfully?

Despite the docs, it looks like it wants just 'u', and 'p', rather than '-u' and '-p':

[EMAIL PROTECTED] root]# mkdir /mnt/dav
[EMAIL PROTECTED] root]# mount.davfs http://localhost/~stew/ /mnt/dav u stew
p stewspass
[EMAIL PROTECTED] root]# mount | tail -1
http://localhost/~stew/ on /mnt/dav type davfs (0)
[EMAIL PROTECTED] root]# ls -l /mnt/dav
total 13
-rwxrw-r-- 1 500 500 569 Nov 3 13:16 focustest.php*
-rwxrw-r-- 1 500 500 20 Nov 3 13:16 phpinfo.php*
-rwxrw-r-- 1 500 500 87376 Oct 27 17:35 test.html*
-rwxrw-r-- 1 500 500 95 Nov 3 13:16 test.php*


Actually, I got the same results with no user or pass:

[EMAIL PROTECTED] root]# umount /mnt/dav
[EMAIL PROTECTED] root]# mount.davfs http://localhost/~stew/ /mnt/dav
[EMAIL PROTECTED] root]# ls -l /mnt/dav
total 13
-rwxrw-r--    1 500      500           569 Nov  3 13:16 focustest.php*
-rwxrw-r--    1 500      500            20 Nov  3 13:16 phpinfo.php*
-rwxrw-r--    1 500      500         87376 Oct 27 17:35 test.html*
-rwxrw-r--    1 500      500            95 Nov  3 13:16 test.php*


mount.davfs apparently has a problem if access is limited. What I have setup on the server side is the following:


<LimitExcept GET HEAD OPTIONS>
        Require valid-user
</LimitExcept>


If I comment out the <LimitExcept> and </LimitExcept> lines, then I get prompted for a password but the mounting still fails since I am yet to find a way to pass the username. Not -u nor u seem to do the job.


If I completely comment this section out (which also means that the share is open to everyone, something I cannot allow) the mount works OK.

Now, if I was unable to mount the share anywhere else I would have suspected a problem with my setup, but I have no problem mounting this share from OS X.

Avi


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to