# How to access SMB/SAMBA with rclone

**URL:** <https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754>\
**Category:** Howto Guides\
**Created:** [November 6, 2023, 10:40pm UTC](https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754 "2023-11-06T22:40:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [November 6, 2023, 10:40pm UTC](https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754/1 "2023-11-06T22:40:52Z")

</div>

note: rclone does have a [smb](https://rclone.org/smb/) remote but imho, not recommended for production.

[https://rclone.org/overview/#features](https://rclone.org/overview/#features)  
 ![image](https://forum.rclone.org/uploads/default/original/3X/5/9/5979f13c5f4d845a3bbb05ea75ad8a5251bdc480.png)

- lacks modtime support.
- lacks file verification using checksum/hash.
- relies on an upstream third-party library. i could be wrong, but it has not been updated since `Jul 15, 2022`
- too many bugs/issues at rclone github, including some are waiting on `waiting for upstream...`  
[https://github.com/rclone/rclone/issues?q=is%3Aissue+is%3Aopen+smb](https://github.com/rclone/rclone/issues?q=is%3Aissue+is%3Aopen+smb)

luckily, it is easy to access SMB/SAMBA shares using the os.

* * *

on linux:

```auto
mount -t cifs -o username="username",password="password" //server/share /mnt/share
rclone ls /mnt/share
umount /mnt/share

```

* * *

on windows:

- mount with drive letter

```auto
net use x: \\server\share /user:"username" "password"
rclone ls x:\
net use /delete x:

```

- mount without drive letter

```auto
net use \\server\share /user:"username" "password"
rclone ls \\server\share
net use /delete \\server\share

```

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 8, 2023, 12:29pm UTC](https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754/2 "2023-11-08T12:29:53Z")

</div>

> [@asdffdsa](#):
>
> - lacks modtime support.

I had a look at the backend code - it does support modtime! So I think the overview page is wrong here 🙂

> [@asdffdsa](#):
>
> lacks file verification using checksum/hash.

That is true. However if you use it via the local backend then rclone will just read the file content to make hashes, so maybe the smb backend should just do that too? Or maybe optionally?

> [@asdffdsa](#):
>
> relies on an upstream third-party library. i could be wrong, but it has not been updated since `Jul 15, 2022`

You are right here. Unfortunately the maintainer of the [upstream library](https://github.com/hirochachacha/go-smb2) has gone quiet.

> [@asdffdsa](#):
>
> too many bugs/issues at rclone github, including some are waiting on `waiting for upstream...`  
> [Issues · rclone/rclone · GitHub](https://github.com/rclone/rclone/issues?q=is%3Aissue+is%3Aopen+smb)

The consensus from users is that if you can get it connected it works very well and it is quite quick.

However it does not support enterprisey smb shares very well. If you look at the [upstream issues](https://github.com/hirochachacha/go-smb2/issues) you can see that the majority of them are about connecting to enterprisey servers.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [November 12, 2023, 7:52pm UTC](https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754/4 "2023-11-12T19:52:48Z")

</div>

> [@ncw](#):
>
> I had a look at the backend code - it does support modtime! So I think the overview page is wrong here 🙂

i did a one-line pull request to update the docs.

[Update Docs to show SMB remote supports modtime](https://github.com/rclone/rclone/pull/7416)
