Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: "Retzlaw Heinrich" To: 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 : 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/