From: Stefan Huber <looseleaf@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Permission Denied When i am Trying to take Backup
Date: Wed, 10 Oct 2001 14:24:42 +0200
Message-ID: <5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net> (raw)
In-Reply-To: <005f01c15183$4a68eac0$ec01a8c0@eth.net>
References: <Pine.BSF.4.21.0110080858240.77847-100000@megazone23.bigpanda.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: looseleaf@gmx.net
Subject: Re: Permission Denied When i am Trying to take Backup
In-Reply-To: <5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net>
References: <Pine.BSF.4.21.0110080858240.77847-100000@megazone23.bigpanda.com> <5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox