Skip site navigation (1) Skip section navigation (2)

Re: changing user id

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Russell Davie <rjrd(at)exemail(dot)com(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: changing user id
Date: 2006-05-30 02:57:54
Message-ID: 19019.1148957874@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Russell Davie <rjrd(at)exemail(dot)com(dot)au> writes:
> postgres(at)XXXXX:~$ /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]

init scripts generally expect to be launched as root.  Perhaps
	sudo /etc/init.d/postgresql-7.4 start
would work better.  Actually, I believe that on modern systems
you're not really supposed to invoke an init script directly like
that at all, but instead through the "service" program; that is,
you should really be typing something like
	sudo /sbin/service postgresql-7.4 start

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Mark KellyDate: 2006-05-30 05:30:34
Subject: Re: changing user id
Previous:From: Russell DavieDate: 2006-05-29 21:41:53
Subject: changing user id

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group