Re: Permission Denied When i am Trying to take Backup

From: Stefan Huber <looseleaf(at)gmx(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Permission Denied When i am Trying to take Backup
Date: 2001-10-10 12:24:42
Message-ID: 5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi!

> Greetings. I am using Postgresql in Red hat linux 71. When i was trying
>to take the backup it is giving the error "Permission Denied"
> 1. Login as root
> 2. su -l postgres
> 3. pg_dump databasename >filename

Who gives you the "Permission denied"? The shell? The postmaster? What is
the exact error message?

I guess, you dno't have permission to create a file as user postgres in the
directory you are working in.

If you followed the installatino guide step by step, the postgres
files/directories are owned by root, not by postgres. I always do a chown
-R postgres:daemon /usr/local/pgsql (or postgres:postgres) after installation.

Stefan

--
Cameron's Law:
An honest politician is one who, when he is bought, will stay bought.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message postgresql 2001-10-10 12:29:46 Re: Database access error after upgrade 7.1.2 -> 7.1.3
Previous Message Chris Ruprecht 2001-10-10 12:14:55 Re: Permission Denied When i am Trying to take Backup