Search Postgresql Archives

Re: Error message "psql: could not connect to server: No such file or directory"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Craig Ringer <ringerc@xxxxxxxxxxxxx> writes:
> On 06/25/2012 04:21 PM, Stefan Schwarzer wrote:
>> When I type in:
>> 
>> sudo -u _postgres /usr/local/pgsql-9.1/bin/postgres -D /usr/local/pgsql-9.1/data
>> 
>> it spits out:
>> 
>> LOG:  00000: could not identify current directory: Permission denied

> It's trying to get information on the current directory - probably your 
> home dir - but the _postgres user doesn't have access to it.

Try adding the "-i" option to the sudo command.  Starting postgres
under whatever environment you happen to have in your interactive shell
isn't a very good idea anyway --- things will be more predictable with
user _postgres' login environment.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux