This relies on go-smb2 library for communication with SMB protocol.
Paths are specified as
remote: for the
command.) You may put subdirectories in too, e.g.
The first path segment must be the name of the share, which you entered when you started to share on Windows. On smbd, it's the section title in
smb.conf (usually in
You can find shares by quering the root if you're unsure (e.g.
rclone lsd remote:).
You can't access to the shared printers from rclone, obviously.
You can't use Anonymous access for logging in. You have to use the
guest user with an empty password instead.
The rclone client tries to avoid 8.3 names when uploading files by encoding trailing spaces and periods.
Alternatively, the local backend on Windows can access SMB servers using UNC paths, by
\\server\share. This doesn't apply to non-Windows OSes, such as Linux and macOS.
Here is an example of making a SMB configuration.
This will guide you through an interactive setup process.
No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. XX / SMB / CIFS \ (smb) Storage> smb Option host. Samba hostname to connect to. E.g. "example.com". Enter a value. host> localhost Option user. Samba username. Enter a string value. Press Enter for the default (lesmi). user> guest Option port. Samba port number. Enter a signed integer. Press Enter for the default (445). port> Option pass. Samba password. Choose an alternative below. Press Enter for the default (n). y) Yes, type in my own password g) Generate random password n) No, leave this optional password blank (default) y/g/n> g Password strength in bits. 64 is just about memorable 128 is secure 1024 is the maximum Bits> 64 Your password is: XXXX Use this password? Please note that an obscured version of this password (and not the password itself) will be stored under your configuration file, so keep this generated password in a safe place. y) Yes (default) n) No y/n> y Option domain. Domain name for NTLM authentication. Enter a string value. Press Enter for the default (WORKGROUP). domain> Edit advanced config? y) Yes n) No (default) y/n> n Configuration complete. Options: - type: samba - host: localhost - user: guest - pass: *** ENCRYPTED *** Keep this "remote" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> d
Here are the Standard options specific to smb (SMB / CIFS).
SMB server hostname to connect to.
SMB port number.
NB Input to this must be obscured - see rclone obscure.
Domain name for NTLM authentication.
Here are the Advanced options specific to smb (SMB / CIFS).
Max time before closing idle connections.
If no connections have been returned to the connection pool in the time given, rclone will empty the connection pool.
Set to 0 to keep connections indefinitely.
Hide special shares (e.g. print$) which users aren't supposed to access.
Whether the server is configured to be case-insensitive.
Always true on Windows shares.
The encoding for the backend.
See the encoding section in the overview for more info.