Re: archive command Permission Denied?

From: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: archive command Permission Denied?
Date: 2008-11-08 00:51:13
Message-ID: 4914E281.7040208@supernovasoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Jason Long <mailing(dot)list(at)supernovasoftware(dot)com> writes:
>
>> Tom Lane wrote:
>>
>>> If that is what's happening, you'll find "avc denied" messages in the
>>> system log that correlate to the archive failures.
>>>
>>>
>> *I did not see anything like this in my logs.*
>>
>
> You'd need to look in the system log (/var/log/messages) not the
> postmaster's log.
>
*I think I found the problem. By putting the archive command directly
in postgresql.conf

I got this error

/usr/sbin/sendmail: Permission denied

So I guess I need to allow the use of sendmail.

How is postgres running the command different from my doing it as the
postgres user or cron running as the postgres user?

Oh, well time to call my Linux guru. Thanks for all your help. You
definitely got me going tin the right direction.*
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Allison 2008-11-08 00:51:51 Re: postgresql and Mac OS X
Previous Message Adrian Klaver 2008-11-08 00:42:58 Re: Specifying text to substitute for NULLs in selects