Answer the question
In order to leave comments, you need to log in
Problem with Postgresql backup, what's wrong?
Firework. There was such a problem. I have a postgresql db, I'm trying to make a backup >
sudo pg_dump -U drurh -W finance > /tmp/finance.dump
pg_dump: ошибка: не удалось подключиться к базе "finance": ВАЖНО: пользователь "drurh" не прошёл проверку подлинности (Peer)
bash: cd: ./main/: Отказано в доступе
Answer the question
In order to leave comments, you need to log in
what the commands say:
whoami
ls -l /var/lib/postgresql/12
sudo -i
to get root permissions and try to change into this directory again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question