Logs perms and ownership

Поиск
Список
Период
Сортировка
Искать

Logs perms and ownership

От:
<steve@outtalimits.com.au>
Дата:
Hi all,

Is there a way to make the postgres logs readable by other users or a group
apart from postgres:postgres?
I am on postgres 8.1

I cannot see any feature to allow setting perms or ownership


Thanks

Steve

Re: Logs perms and ownership

От:
Steve Holdoway <steve.holdoway@firetrust.com>
Дата:
On Tue, 26 Aug 2008 10:42:19 +1000
 wrote:

> Hi all,
> 
> Is there a way to make the postgres logs readable by other users or a group
> apart from postgres:postgres?
> I am on postgres 8.1
> 
> I cannot see any feature to allow setting perms or ownership
> 
> 
> Thanks
> 
> Steve
> 
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


Add that user to the postgres group?

-- 
Steve Holdoway 

Re: Logs perms and ownership

От:
Joshua Drake <jd@commandprompt.com>
Дата:
On Tue, 26 Aug 2008 14:11:13 +1200
Steve Holdoway  wrote:

> On Tue, 26 Aug 2008 10:42:19 +1000
>  wrote:
> 
> > Hi all,
> > 
> > Is there a way to make the postgres logs readable by other users or
> > a group apart from postgres:postgres?
> > I am on postgres 8.1
> > 
> > I cannot see any feature to allow setting perms or ownership
> > 
 
> 
> Add that user to the postgres group?
> 

Actually that may or may not work. If the log directory is under
$PGDATA then it won't because $PGDATA must be 0700. If the log
directory is elsewhere or he is using syslog he can get around it.

Sincerely,

Joshua D. Drake

-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate


Re: Logs perms and ownership

От:
<steve@outtalimits.com.au>
Дата:
Yeah, thought about that but as you said the perms on the logs are 700. on
both stderr and syslogging.

On Mon, 25 Aug 2008 19:22:45 -0700, Joshua Drake 
wrote:
> On Tue, 26 Aug 2008 14:11:13 +1200
> Steve Holdoway  wrote:
> 
>> On Tue, 26 Aug 2008 10:42:19 +1000
>>  wrote:
>> 
>> > Hi all,
>> > 
>> > Is there a way to make the postgres logs readable by other users or
>> > a group apart from postgres:postgres?
>> > I am on postgres 8.1
>> > 
>> > I cannot see any feature to allow setting perms or ownership
>> > 
>  
>> 
>> Add that user to the postgres group?
>> 
> 
> Actually that may or may not work. If the log directory is under
> $PGDATA then it won't because $PGDATA must be 0700. If the log
> directory is elsewhere or he is using syslog he can get around it.
> 
> Sincerely,
> 
> Joshua D. Drake
> 
> -- 
> The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
> PostgreSQL Community Conference: http://www.postgresqlconference.org/
> United States PostgreSQL Association: http://www.postgresql.us/
> Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
> 
> 
> 
>

Re: Logs perms and ownership

От:
<steve@outtalimits.com.au>
Дата:
Correction, perms are 600.

On Mon, 25 Aug 2008 19:22:45 -0700, Joshua Drake 
wrote:
> On Tue, 26 Aug 2008 14:11:13 +1200
> Steve Holdoway  wrote:
> 
>> On Tue, 26 Aug 2008 10:42:19 +1000
>>  wrote:
>> 
>> > Hi all,
>> > 
>> > Is there a way to make the postgres logs readable by other users or
>> > a group apart from postgres:postgres?
>> > I am on postgres 8.1
>> > 
>> > I cannot see any feature to allow setting perms or ownership
>> > 
>  
>> 
>> Add that user to the postgres group?
>> 
> 
> Actually that may or may not work. If the log directory is under
> $PGDATA then it won't because $PGDATA must be 0700. If the log
> directory is elsewhere or he is using syslog he can get around it.
> 
> Sincerely,
> 
> Joshua D. Drake
> 
> -- 
> The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
> PostgreSQL Community Conference: http://www.postgresqlconference.org/
> United States PostgreSQL Association: http://www.postgresql.us/
> Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
> 
> 
> 
>
FAQ