What's the best way to update a remote's password from the command line?

What is the problem you are having with rclone?

Hi, I'd like to know the recommended way to update a password from the command line. Specifically:

  1. what subcommand to use?
  2. what the fieldname is
rclone config update <myremotename> password <mypassword> # doesn't work, looks like password is not the correct field?

# not clear which command below is preferred:
rclone config password myremote password <mypassword> # works
rclone config update <myremotename> pass <mypassword> # works

This tells me the field name is pass, and not password for this backend. Is this correct? However, the crypt backend seems to use password and password2. Is the field name for the password backend specific?

This page says:

This command is obsolete now that "config update" and "config create" both support obscuring passwords directly.

Does this mean the config password has a risk of being deprecated in the future?

Thanks.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.4.72-microsoft-standard-WSL2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config update myremotename pass

And also: how do I remove a config field I accidentally created from the command line?

check remote documentation, e.g. for crypt - Crypt.

so, e.g.:

rclone config password myremote fieldname mypassword

none is preferred - you have to use right key name.

Probably the easiest is to edit you config file in any text editor

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.