Trying to do the following:
mkdir /Volumes/temp
mount_webdav davs://:443 /Volumes/tempIt doesn't return any error, but /Volumes/temp is empty in result.
Here are the details of connection required (mac / linux), they are in Russian, but you may see details on screenshots.
Upd. The following works:
mount_webdav -i /Volumes/tempBut in this case I have to input user name and password. I've tried the following:
mount_webdav /Volumes/temp
mount_webdav -s /Volumes/tempIt doesn't work.
4 Answers
In (at least) 10.9 and 10.10, mounting via WebDAV via the command line isn't easy -- the mount_webdav command does not work the way it is documented and fails silently leaving an empty mount point while the interactive version (-i) of the command works as expected. The non-interactive version files (specifically storing and retrieving of the login/password).
Here is a solution:
The correct way to mount a WebDAV-enabled server directory in OS X is like the example you mentioned works. The reason it's asking for a username and password is because you've specified the -i argument, which denotes Interactive mode (you are prompted for the username and password).
To mount a webdav for a certain user you would use like this:
mount_webdav /Volumes/temp/If you don't want to be prompted for the username and password then you can store the user credentials in your keychain.
see Apple's MOUNT_WEBDAV man page for more information.
8You can also use something like ExpanDrive that has a graphical interface and helps you set up and maintain the webDAV mount. Faster, too, and has some extra features.
2I was looking for a solution to make automatic downloads through a command-line script connecting to a WebDav filesystem and found an open source software (for Mac and Windows) which really helped!
Cyberduck:
It provides both graphical user-interface and command-line options.