From: Russell Davie <rjrd@exemail.com.au>
To: pgsql-admin@postgresql.org
Subject: Error: Could not change user id
Date: Mon, 29 May 2006 09:31:22 +1000
Message-ID: <20060529093122.79854750@localhost.localdomain> (raw)
Hi All
I have used PostgreSQL for SQL-Ledger in Linux (Ubuntu) for about 6months and have run into PostgreSQL
problems when it starts up.
PostgreSQL is reporting errors about changing user id so that it falls
over when the system boots.
I've read this:
http://archives.postgresql.org/pgsql-admin/2006-01/msg00273.php
I have found FAQ for Linux:
http://www.designmagick.com/article/2/Starting-Out/Installing-PostgreSQL
yet this error still occurs after changing the permissions of the postgresql directory
ie:
sudo chown -R postgres:postgres /usr/share/postgresql
sudo chown -R postgres:postgres /usr/share/postgresql-common
what happens:
Manually starting postgresql by the user postgres:
postgres@XXXX:/etc/init.d$ ./postgresql-7.4 start
chmod: changing permissions of `/var/run/postgresql': Operation not permitted
* Starting PostgreSQL 7.4 database server:main
Error: Could not change user id [fail]
after changing ownership of `/var/run/postgresql' to postgres:postgres and with
permissions 4777 then the errors are less, but postgresql still doesn't
start:
postgres@XXX:/etc/init.d$ ./postgresql-7.4 start
* Starting PostgreSQL 7.4 database server:main
Error: Could not change user id [fail]
I think this maybe something in /etc/postgresql/7.4/pg_hba.log or /etc/postgresql/7.4/postgresql.conf yet I haven't found the solution to get PostgreQL going.
What could be wrong here?
How can this be fixed?
What do I need to read?
TIA
Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rjrd@exemail.com.au
Subject: Re: Error: Could not change user id
In-Reply-To: <20060529093122.79854750@localhost.localdomain>
References: <20060529093122.79854750@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox