sudo/access to the postres OS user - Mailing list pgsql-novice

From Birchall, Austen
Subject sudo/access to the postres OS user
Date
Msg-id 4E154FB60786D74BB4DFDC97BF991CAC08A916@EXXCMPD1DAG2.cmpd1.metoffice.gov.uk
Whole thread Raw
In response to Re: Running psql commands from a remote location & pg_hba.conf?  (Luca Ferrari <fluca1978@infinito.it>)
Responses Re: sudo/access to the postres OS user
Re: sudo/access to the postres OS user
List pgsql-novice
9.2 on Red Hat 6

Our OS Sys Admin have decided to withdraw my (DBA) access to the OS postgres account - so instead of
ssh/logging in to a DB host I I have to login in as 'myself' and then gain access to psql etc. via sudo
such as by doing
 PSQL access as the postgres user
sudo -u postgres /usr/bin/psql <command line options>
which I have been granted permissions to do.

I have the following questions regarding this:

1.    Is this standard/best practise?

2.    In simple terms what is justification for dong this - looking at it from a DBA point of view?

3.    As myself I current have no permissions on the ..../psql/data directory and its sub-directories including the log
files,which IMHO I need in order to be able to function as a DBA - is there a preferred way in which I can be
granted/gainthis access other than by granting rights on files at an individual level? 

Happy to (try to) explain further if none of this makes much sense.

Thanks in advance as always

Austen


Austen Birchall  Senior Database Administrator
Met Office


pgsql-novice by date:

Previous
From: Edd Grant
Date:
Subject: Re: Setting postgres user's password when running initdb
Next
From: "Birchall, Austen"
Date:
Subject: tablespace - datafile location