X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id E897E9FB40F for ; Thu, 31 Aug 2006 14:15:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 98764-08 for ; Thu, 31 Aug 2006 17:14:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 357029FB3F0 for ; Thu, 31 Aug 2006 14:14:57 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k7VHEcgE004065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Aug 2006 10:14:43 -0700 Message-ID: <44F71909.6020608@commandprompt.com> Date: Thu, 31 Aug 2006 10:14:49 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: Scott Marlowe CC: "Josef J. Micka" , pgsql-admin@postgresql.org Subject: Re: problem with initlocation References: <44F6FA9D.7070509@maylo.cz> <1157040174.10490.53.camel@state.g2switchworks.com> In-Reply-To: <1157040174.10490.53.camel@state.g2switchworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 31 Aug 2006 10:14:43 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/353 X-Sequence-Number: 22896 Scott Marlowe wrote: > On Thu, 2006-08-31 at 10:05, Josef J. Micka wrote: >> i want to make database in another place and i'm unable to use >> initlocation, and i don't know, what i'm doing wrong. >> >> this is what i do, and i think it's correct. >> >> www:/home/db/postgres$ su postgres >> postgres@www:/home/db/postgres$ ls -l >> total 12 >> drwx------ 6 postgres postgres 4096 Aug 31 14:59 data >> drwxr-xr-x 2 postgres postgres 4096 Aug 31 14:19 data-web >> drwx------ 3 postgres postgres 4096 Oct 15 2004 dumpall >> postgres@www:/home/db/postgres$ /usr/lib/postgresql/bin/initlocation >> /home/db/postgres/data-web/ >> initlocation: cannot be run as root > > What does the command whoami say right before you would run the > initlocation? I think a more appropriate question would be why is he running a version of PostgreSQL that still has initlocation? Sincerely, Joshua D. Drake > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/