# Occ files:scan -\> samba Permission denied

**URL:** <https://help.nextcloud.com/t/occ-files-scan-samba-permission-denied/81051>\
**Category:** ℹ️ Support\
**Tags:** external\_storage, smb, nc18-nextcloud-hub\
**Created:** [May 10, 2020, 1:33pm UTC](https://help.nextcloud.com/t/occ-files-scan-samba-permission-denied/81051 "2020-05-10T13:33:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [May 10, 2020, 4:16pm UTC](https://help.nextcloud.com/t/occ-files-scan-samba-permission-denied/81051/4 "2020-05-10T16:16:39Z")

</div>

For any file access not carried out inside Nextcloud itself, it will be done in the context of the user www-data. Make sure the www-data user can access the mounted share.

---

_[View the full topic](https://help.nextcloud.com/t/occ-files-scan-samba-permission-denied/81051)._
