delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/17/06:23:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <hretzlaw AT etm-ag DOT com>
From: "Retzlaw Heinrich" <hretzlaw AT etm-ag DOT com>
To: <cygwin AT cygwin DOT com>
Subject: postgresql + chown
Date: Tue, 17 Sep 2002 12:22:43 +0200
Message-Id: <02Sep17.122415cest.117128@fwetm.etm-ag.com>
Mime-Version: 1.0
X-Priority: 3 (Normal)
X-Msmail-Priority: Normal
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

Hello,
I am trying to install Postgres on a win2000 machine.

I am following the instractions at
:<http://www.ejip.net/faq/postgresql-7.1.3.README> for a NT services
installation. (cygwin is already installed ofcourse).

followed all the steps, but at step 6
6. Change ownership of the PostgreSQL data directory:
# chown postgres /usr/share/postgresql/data

But nothing happens. The owner of the directory ist the Administrator.

Then I tried to login as postgres:
# login postgres

But after I entered the password an error occurs: Login incorrect.

Following entry is in the /etc/passwd-file:
postgres:unused_by_net/2000/xp:1007:513:postgres,U-AAWRK020\postgres,S-xxBLA
xx:/home/postgres:/bin/bash
I changed it to
postgres::1007:513:postgres,U-AAWRK020\postgres,S-xxBLAxx:/home/postgres:/bi
n/bash
After I log in with
# login postgres
the following message appears:
No directory /home/postgres!
Logging in with home = "/".
Fanfare!!!
You are successfully logged in to this server!!!

But I can not change the owner of /usr/share/postgresql/data from
Administrator to postgres.
If I try to init the db, teh following message appears:
The files belonging to this database will be owned by user "Administrator".
This user must also own the server process
.
.
.

But the owner of all the files is the Administrator, even though I logged in
as postgres with no home-directory.

How to add a user with home-directory?
Or what else can I do?
Why is it not possible to change the owner of a directory, even if I am the
Administrator?

Best regards
Heinrich

Heinrich Retzlaw - Software Developer
ETM Deutschland GmbH
Adenauerstraße 20-A1, D-52146 Aachen
Tel. +49/2405/4995-0, Fax -707
E-Mail: hretzlaw AT etm DOT at
Web: http://www.etm.at   http://www.praedico.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019