Assume such config file:
[mail]
type = webdav
url = https://webdav.acme.com
vendor = other
user = foo
pass = bar
This command works fine:
$ rclone ls mail:
But this one fails:
$ rclone ls
–webdav-vendor other
–webdav-url https://webdav.acme.com
–webdav-user foo
–webdav-pass bar
:webdav:
2018/11/16 15:21:58 ERROR : : error listing: couldn’t list files: 401 Unauthorized
2018/11/16 15:21:58 Failed to ls: couldn’t list files: 401 Unauthorized
I’ve basically copied all values from config file into command line, including obfuscated password, but it looks like rclone doesn’t pass them down to backend.
I’m copying already obfuscated password from config file, since that what I’ve understood from other issues on GH and SO. But yeah, original password contains special chars.
Have you tried using ’ or " to enclose the password on the command line? I can’t replicate what you are doing though since I don’t know what chars are in there.
Yes, I did, but to clarify: I put in CLI obscrured password “hash” that has no special characters. One that stored in config file or produced via “rclone obscure mypass”.
You can also try to use the RCLONE_CONFIG_PASS or RCLONE_WEBDAV_PASS in your script to see if that works as well rather than passing on the command line.