[Pkg-postgresql-public] Bug#834264: postgresql-common: pg_* tools should set current workingdir

Christoph Anton Mitterer calestyo at scientia.net
Sat Aug 13 21:02:54 UTC 2016


Source: postgresql-common
Version: 165+deb8u1
Severity: normal


Hey.

Just close this if it's already fixed in more recent versions:
When doing e.g.
# pg_createcluster 9.4 test
Creating new cluster 9.4/test ...
  config /etc/postgresql/9.4/test
  data   /var/lib/postgresql/9.4/test
  locale en_DE.UTF-8
Flags of /var/lib/postgresql/9.4/test set as -------------e-C
could not change directory to "/root": Permission denied
  port   5433

>From within a directory not readable by postgresql, one get's the:
could not change directory to "/root": Permission denied


These tools should perhaps all "cd /" in some early place :)


Cheers,
Chris.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-postgresql-public mailing list