# PostgreSQL: pg\_ctl: cannot be run as root

**URL:** <https://www.debian-fr.org/t/postgresql-pg-ctl-cannot-be-run-as-root/77632>\
**Category:** Support Debian\
**Created:** [Septembre 27, 2018, 11:49 UTC](https://www.debian-fr.org/t/postgresql-pg-ctl-cannot-be-run-as-root/77632 "2018-09-27T11:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariastark](https://www.debian-fr.org/user_avatar/www.debian-fr.org/ariastark/32/7167_2.png) [@ariastark](https://www.debian-fr.org/u/ariastark)\
**Post date:** [Septembre 27, 2018, 11:49 UTC](https://www.debian-fr.org/t/postgresql-pg-ctl-cannot-be-run-as-root/77632/1 "2018-09-27T11:49:55Z")

</div>

Salut tout le monde j’ai des soucis avec mon PostgreSQL sur Docker. Après avoir déplacé le dossier /var/lib/docker/ dans /home/ en lien symbolique, je n’arrive plus à démarrer mon PostgreSQL. L’erreur qu’il me génère est là-dessous.

```nohighlight
:~# /etc/init.d/postgresql restart
[....] Restarting PostgreSQL 9.6 database server: main[....] Error: /usr/lib/postgresql/9.6/bin/pg_ctl /usr/lib/postgresql/9.6/bin/pg_ctl start -D /var/lib/postgresql/9.6/main -l /var/log/postgresql/postgresql-9.6-main.log -s -o -c config_file="/etc/postgresql/9.6/main/postgresql.conf" exited with status 1: pg_ctl: cannot be run as root Please log in (using, e.g., "su") as the (unprivileged) user [FAILwill own the server process. ... failed!
 failed!

```
