Authentication error if i try to connect an SMB server

What is the problem you are having with rclone?

Connection on SMB not work:
couldn't connect SMB: response error: The attempted logon is invalid. This is either due to a bad username or authentication information

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

rclone v1.63.1
- os/version: turrisos 6.4.4
- os/kernel: 5.15.135 (armv7l)
- os/type: linux
- os/arch: arm (ARMv7 compatible)
- go/version: go1.18.10
- go/linking: dynamic
- go/tags: none

-> turrisos is OpenWRT based.

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

SMB / CIFS

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

rclone ls smbdrive:

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Command config needs 0 arguments maximum: you provided 1 non flag arguments: ["redacted"]

A log from the command that you were trying to run with the -vv flag

2023/11/24 17:24:35 ERROR : : error listing: couldn't connect SMB: response error: The attempted logon is invalid. This is either due to a bad username or authentication information.
2023/11/24 17:24:35 Failed to ls with 2 errors: last error was: couldn't connect SMB: response error: The attempted logon is invalid. This is either due to a bad username or authentication information.

First update your rclone to the latest v1.64.2 version and try again.

If still not working run:

rclone config redacted

rclone ls smbdrive: -vv

and post output here.

This version came from the router os with OpenWRT, I'm not able to update this. I have to wait for the Update from turrisos.

Can you connect to this smb share using OS smb client? It would make sure that username/password are correct.

Is you password obfuscated in rclone.conf file?

If you edit it manually first you have to run through rclone obscure

thanks a lot that was the solution. :+1:t5:

For the record I worked with
rclone rcd --rc-web-gui
It seems that the web-GUI obscured the Password for my Webdav configuration but not the password for my SMB Configuration.

1 Like

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