# Changing data directory location with snap installation procedures

**URL:** <https://help.nextcloud.com/t/changing-data-directory-location-with-snap-installation-procedures/23841>\
**Category:** ℹ️ Support\
**Created:** [November 22, 2017, 8:46am UTC](https://help.nextcloud.com/t/changing-data-directory-location-with-snap-installation-procedures/23841 "2017-11-22T08:46:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jupsoleil](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jupsoleil/32/22791_2.png) [@jupsoleil](https://help.nextcloud.com/u/jupsoleil)\
**Post date:** [August 31, 2020, 7:00am UTC](https://help.nextcloud.com/t/changing-data-directory-location-with-snap-installation-procedures/23841/4 "2020-08-31T07:00:52Z")

</div>

Indeed, by default, snaps cannot access data outside of their directory.

Give the nextcloud snap access to /media:  
sudo snap connect nextcloud:removable-media

After this, nextcloud can access data below /media.

---

_[View the full topic](https://help.nextcloud.com/t/changing-data-directory-location-with-snap-installation-procedures/23841)._
