RE: Unable to start PostgreSQL from user other than root - Mailing list pgsql-admin

From Michael Ansley
Subject RE: Unable to start PostgreSQL from user other than root
Date
Msg-id 7F124BC48D56D411812500D0B747251480F46E@FILESERVER002
Whole thread Raw
In response to Unable to start PostgreSQL from user other than root  (Silky Mittal <silky212001@yahoo.com>)
Responses Re: Unable to start PostgreSQL from user other than root
List pgsql-admin

>> Silky Mittal wrote:
>>   >Dear Sir,
>>   >      We are running Linux 6.2 on our machine.
>>
>> That is horribly old, full of bugs and sadly lacking in features.
I suspect that Silky meant RH 6.2, not PG 6.2.

>>   >      We are able to start postgresql on the root
>>   >giving the command /etc/rc.d/init.d/postgresql start.
>>   >But if we login as our own created user we are unable
>>   >to start postgresql using the same command as above.It
>>   >says No such file or directory.Help will be
>>   >appreciated.
>>
>>
>> The postmaster should normally be started by the postgres
>> administrator;
>> I suppose that the init.d script arranges this for you.  It
>> should not
>> be run by just any user.  If you must do this, you probably
>> need to add
>> something to the user's PATH or define some other
>> environment variable.
>>
>> If you want to find out more about what is happening, do
>>
>>   sh -x  /etc/rc.d/init.d/postgresql start
>>
>> which will trace each command in the script as it is executed.
Although the postgres user should be used to start the postmaster, the RH init script can only be called by root.  The script su's to postgres to start, though.

Unless Silky does not have access to root, or specifically requires dev access to start and stop postgres, I would suggest leaving it as it is, and getting postgres started on boot.

Cheers...

MikeA

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
Nick West - Global Infrastructure Manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

pgsql-admin by date:

Previous
From: Oliver Vecernik
Date:
Subject: PL/pgSQL
Next
From: Samuel Tardieu
Date:
Subject: Re: Unable to start PostgreSQL from user other than root