From 3a3bc5a1ae822b5430292b7ecc513045b71f70f8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 8 Nov 2022 20:31:26 +0000 Subject: [PATCH] mailru: note that an app password is now needed - fixes #6398 --- backend/mailru/mailru.go | 9 +++++++-- docs/content/mailru.md | 21 +++++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/backend/mailru/mailru.go b/backend/mailru/mailru.go index 5a630a2d3..2df923c3c 100644 --- a/backend/mailru/mailru.go +++ b/backend/mailru/mailru.go @@ -90,8 +90,13 @@ func init() { Help: "User name (usually email).", Required: true, }, { - Name: "pass", - Help: "Password.", + Name: "pass", + Help: `Password. + +This must be an app password - rclone will not work with your normal +password. See the Configuration section in the docs for how to make an +app password. +`, Required: true, IsPassword: true, }, { diff --git a/docs/content/mailru.md b/docs/content/mailru.md index 96bd5aabb..5814283c8 100644 --- a/docs/content/mailru.md +++ b/docs/content/mailru.md @@ -24,8 +24,21 @@ Currently it is recommended to disable 2FA on Mail.ru accounts intended for rclo ## Configuration -Here is an example of making a mailru configuration. First create a Mail.ru Cloud -account and choose a tariff, then run +Here is an example of making a mailru configuration. + +First create a Mail.ru Cloud account and choose a tariff. + +You will need to log in and create an app password for rclone. Rclone +**will not work** with your normal username and password - it will +give an error like `oauth2: server response missing access_token`. + +- Click on your user icon in the top right +- Go to Security / "Пароль и безопасность" +- Click password for apps / "Пароли для внешних приложений" +- Add the password - give it a name - eg "rclone" +- Copy the password and use this password below - your normal login password won't work. + +Now run rclone config @@ -51,6 +64,10 @@ User name (usually email) Enter a string value. Press Enter for the default (""). user> username@mail.ru Password + +This must be an app password - rclone will not work with your normal +password. See the Configuration section in the docs for how to make an +app password. y) Yes type in my own password g) Generate random password y/g> y