On 28-Oct-99 Oliver Elphick wrote:
> The Debian preinst script checks for the existence of postgres in
> /etc/passwd
> and creates it if it does not exist.  If it does exist, it uses the home
> directory named in /etc/passwd as the POSTGRES_HOME directory.
> 
> If you have an existing installation, you should not remove the user from
> /etc/passwd.
> 
> If you are _newly_ installing postgresql 6.5.2 or later, there may be a 
> problem because base-passwd still makes the home directory /var/postgres
> whereas it should now be /var/lib/postgres.  Editing /etc/passwd to correct
> this should be sufficient.

I removed all the postgresql packages (purged them) and then removed the user
"postgres" from /etc/passwd.  Then, I installed postgresql and it actually did
not cause any errors this time, so I believe the removal of the user
"postgres" did the trick.

The deb package just recreated the user, as I thought it would.

--
Andrew

Reply via email to