简体   繁体   中英

mount to webdav over terminal command with user credentials

I'm trying to mount to a webdav share over terminal on OS X. But it doesn't work very well.

mount_webdav -i "http://<ip-address>:80/Path/" "/Path/To/mntpnt/"

This is working, because it's prompting for username and password.

BUT!

mount_webdav -i "mount_webdav "http://<windomain>;<username>:<Password>@<ip-address>:80/Path/" "/Path/To/mntpnt/"

This command above don't work.

Have someone a good idea?

Is it possible to automate the -i command over a bash script?

If you store your username and password into your OS X keychain, mount_webdav should automatically pick it up.

sa sidenote, I was under the impression that it's a bad idea to call mount_webdav directly, and you should go via mount instead. But it's possible that that's only true for linux.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM