# Data directory "/shared/postgres\_data" has group or world access

**URL:** <https://meta.discourse.org/t/data-directory-shared-postgres-data-has-group-or-world-access/48468>\
**Category:** Self-hosting\
**Created:** [August 10, 2016, 6:28pm UTC](https://meta.discourse.org/t/data-directory-shared-postgres-data-has-group-or-world-access/48468 "2016-08-10T18:28:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Dan\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan_g/32/114732_2.png) [@Dan\_G](https://meta.discourse.org/u/Dan_G)\
**Post date:** [August 10, 2016, 6:28pm UTC](https://meta.discourse.org/t/data-directory-shared-postgres-data-has-group-or-world-access/48468/1 "2016-08-10T18:28:55Z")

</div>

When I try to `./laucher bootstrap app` discourse it fetches the docker image from the registry and quickly fails afer on

```
LOG: skipping missing configuration file "/shared/postgres_data/postgresql.auto.conf"
2016-08-10 18:21:43 UTC [53-2] FATAL: data directory "/shared/postgres_data" has group or world access
2016-08-10 18:21:43 UTC [53-3] DETAIL: Permissions should be u=rwx (0700).

```

My volume configuration is as such:

```
## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /data/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /data/discourse/shared/standalone/log/var-log
      guest: /var/log

```

/data is a partition on a second disk (formatted as ext4) but that never proved to be an issue with docker for me before, I run my private docker registry the same way. `/data/discourse` doesn’t exist prior to `./launcher bootstrap app`, it is created by by the launcher so I presume it could give it the permissions it wants.

And here’s my `docker info`:

```
docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.12.0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 8
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: overlay host bridge null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.865 GiB
Name: ICL2-LVCORPO-11
ID: TZE6:YZCD:3EFK:IKLN:5RVI:BGA4:M3GS:4CI2:P3TW:TFZY:J2IY:CDFT
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Insecure Registries:
 127.0.0.0/8

```

Any clue?

---

_[View the full topic](https://meta.discourse.org/t/data-directory-shared-postgres-data-has-group-or-world-access/48468)._
