From iaredavey@hotmail.com Sat Mar 23 11:24:31 2002 Received: from hotmail.com (oe19.law11.hotmail.com [64.4.16.123]) by postgresql.org (Postfix) with ESMTP id 098DA474E42 for ; Sat, 23 Mar 2002 06:24:31 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 23 Mar 2002 03:24:33 -0800 X-Originating-IP: [210.49.252.9] From: "David" To: Subject: access is denied completely from postgresql!! Date: Sat, 23 Mar 2002 22:23:14 +1100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1D2B9.52DBBE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: X-OriginalArrivalTime: 23 Mar 2002 11:24:33.0125 (UTC) FILETIME=[4E57C150:01C1D25D] X-Archive-Number: 200203/283 X-Sequence-Number: 3817 This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1D2B9.52DBBE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have done nothing, my LInux server crashed, when i went back in, no user = had access to PostgreSQL. How do i get access back? Can I somehow just create a new environment with= a new database? i dont mind that! I am just not sure how to do it! Do i have to remove PostgreSQL? Cuz it says i haev to remove about 15 diff= erent dependancies!! which is a pain..and i dont know if it will automatica= lly work with Apache still if i was to do that and reinstall.. Help!! ------=_NextPart_000_000B_01C1D2B9.52DBBE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have done nothing, my LInux server crash= ed, when=20 i went back in, no user had access to PostgreSQL.
 
How do i get access back?  Can I some= how just=20 create a new environment with a new database? i dont mind that!  I am = just=20 not sure how to do it!
 
Do i have to remove PostgreSQL?  Cuz = it says i=20 haev to remove about 15 different dependancies!! which is a pain..and i don= t=20 know if it will automatically work with Apache still if i was to do that an= d=20 reinstall.. Help!!
 
------=_NextPart_000_000B_01C1D2B9.52DBBE00-- From jm.poure@freesurf.fr Sat Mar 23 12:11:20 2002 Received: from www1.translationforge (unknown [212.11.36.58]) by postgresql.org (Postfix) with ESMTP id AF9E1474E42 for ; Sat, 23 Mar 2002 07:11:20 -0500 (EST) Received: from there ([192.168.1.102]) by www1.translationforge (8.12.1/8.12.1) with SMTP id g2NCBJ92027822; Sat, 23 Mar 2002 13:11:19 +0100 Message-Id: <200203231211.g2NCBJ92027822@www1.translationforge> Content-Type: text/plain; charset="iso-8859-1" From: Jean-Michel POURE Reply-To: jm.poure@freesurf.fr Organization: Translationforge To: "David" , Subject: Re: access is denied completely from postgresql!! Date: Sat, 23 Mar 2002 13:11:19 +0100 X-Mailer: KMail [version 1.3.1] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200203/284 X-Sequence-Number: 3818 Le Samedi 23 Mars 2002 12:23, David a =E9crit : > I have done nothing, my LInux server crashed, when i went back in, no user > had access to PostgreSQL. > How do i get access back? =A0Can I somehow just create a new environment = with > a new database? i dont mind that! =A0I am just not sure how to do it! > Do i have to remove PostgreSQL? =A0Cuz it says i haev to remove about 15 > different dependancies!! which is a pain..and i dont know if it will > automatically work with Apache still if i was to do that and reinstall.. > Help!! Don't do anything unless we understand what is going on. 1) What is the version of you PostgreSQL installed (rpm -q postgresql)?=20 Alternatively, what is your linux distribution? 2) Do you have a backup of your database (schema + data)? 3) What do the logs say when you try to start the database (probably with= =20 'service postgresql start')? Regards, Jean-Michel POURE From iaredavey@hotmail.com Sat Mar 23 12:28:13 2002 Received: from hotmail.com (f69.law11.hotmail.com [64.4.17.69]) by postgresql.org (Postfix) with ESMTP id 52F29474E42 for ; Sat, 23 Mar 2002 07:28:13 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 23 Mar 2002 04:28:16 -0800 Received: from 210.49.252.9 by lw11fd.law11.hotmail.msn.com with HTTP; Sat, 23 Mar 2002 12:28:15 GMT X-Originating-IP: [210.49.252.9] From: "David Dunstone" To: jm.poure@freesurf.fr, pgsql-admin@postgresql.org Subject: Re: access is denied completely from postgresql!! Date: Sat, 23 Mar 2002 23:28:15 +1100 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 23 Mar 2002 12:28:16.0154 (UTC) FILETIME=[350BAFA0:01C1D266] X-Archive-Number: 200203/285 X-Sequence-Number: 3819

The Postgresql version is 7.0.3-8 and i am running it on Redhat 7.1.  I dont really worry about the database backup because i had only basically created a few databases with test data at this stage.  So im kind of new to the PostgreSQL.  If i try to service it with Webmin, which worked before the crash, Webmin now returns the following kind of error..for example, retrieving a list of users of the system:

SQL select * from pg_shadow failed : pg_shadow: Permission denied.

I can see the current data in the current database, just cant do anything with that, add users, or give users permission etc.

I dont mind deleting the databases and starting again!!

thanks!

>From: Jean-Michel POURE
>Reply-To: jm.poure@freesurf.fr
>To: "David" ,
>Subject: Re: [ADMIN] access is denied completely from postgresql!!
>Date: Sat, 23 Mar 2002 13:11:19 +0100
>
>Le Samedi 23 Mars 2002 12:23, David a écrit :
> > I have done nothing, my LInux server crashed, when i went back in, no user
> > had access to PostgreSQL.
> > How do i get access back?  Can I somehow just create a new environment with
> > a new database? i dont mind that!  I am just not sure how to do it!
> > Do i have to remove PostgreSQL?  Cuz it says i haev to remove about 15
> > different dependancies!! which is a pain..and i dont know if it will
> > automatically work with Apache still if i was to do that and reinstall..
> > Help!!
>
>Don't do anything unless we understand what is going on.
>1) What is the version of you PostgreSQL installed (rpm -q postgresql)?
>Alternatively, what is your linux distribution?
>2) Do you have a backup of your database (schema + data)?
>3) What do the logs say when you try to start the database (probably with
>'service postgresql start')?
>
>Regards,
>Jean-Michel POURE
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html


Join the world’s largest e-mail service with MSN Hotmail. Click Here
From iaredavey@hotmail.com Sat Mar 23 13:12:28 2002 Received: from hotmail.com (oe60.law11.hotmail.com [64.4.16.195]) by postgresql.org (Postfix) with ESMTP id ADFF1474E42 for ; Sat, 23 Mar 2002 08:12:28 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 23 Mar 2002 05:12:31 -0800 X-Originating-IP: [210.49.252.9] From: "David" To: References: Subject: Re: access is denied completely from postgresql!! Date: Sun, 24 Mar 2002 00:11:13 +1100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C1D2C8.68E14350" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: X-OriginalArrivalTime: 23 Mar 2002 13:12:31.0803 (UTC) FILETIME=[63EF90B0:01C1D26C] X-Archive-Number: 200203/286 X-Sequence-Number: 3820 This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C1D2C8.68E14350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I just worked out how to initialize a new database location and did that so= all working now! I just have to recreate my databases. Thanks!! :) ----- Original Message -----=20 From: David Dunstone=20 To: jm.poure@freesurf.fr ; pgsql-admin@postgresql.org=20 Sent: Saturday, March 23, 2002 11:28 PM Subject: Re: [ADMIN] access is denied completely from postgresql!! The Postgresql version is 7.0.3-8 and i am running it on Redhat 7.1. I d= ont really worry about the database backup because i had only basically cre= ated a few databases with test data at this stage. So im kind of new to th= e PostgreSQL. If i try to service it with Webmin, which worked before the = crash, Webmin now returns the following kind of error..for example, retriev= ing a list of users of the system:=20 SQL select * from pg_shadow failed : pg_shadow: Permission denied. I can see the current data in the current database, just cant do anything= with that, add users, or give users permission etc. I dont mind deleting the databases and starting again!! thanks! >From: Jean-Michel POURE=20 >Reply-To: jm.poure@freesurf.fr=20 >To: "David" ,=20 >Subject: Re: [ADMIN] access is denied completely from postgresql!!=20 >Date: Sat, 23 Mar 2002 13:11:19 +0100=20 >=20 >Le Samedi 23 Mars 2002 12:23, David a =E9crit :=20 > > I have done nothing, my LInux server crashed, when i went back in, no= user=20 > > had access to PostgreSQL.=20 > > How do i get access back? Can I somehow just create a new environmen= t with=20 > > a new database? i dont mind that! I am just not sure how to do it!= =20 > > Do i have to remove PostgreSQL? Cuz it says i haev to remove about 1= 5=20 > > different dependancies!! which is a pain..and i dont know if it will= =20 > > automatically work with Apache still if i was to do that and reinstal= l..=20 > > Help!!=20 >=20 >Don't do anything unless we understand what is going on.=20 >1) What is the version of you PostgreSQL installed (rpm -q postgresql)?= =20 >Alternatively, what is your linux distribution?=20 >2) Do you have a backup of your database (schema + data)?=20 >3) What do the logs say when you try to start the database (probably wit= h=20 >'service postgresql start')?=20 >=20 >Regards,=20 >Jean-Michel POURE=20 >=20 >---------------------------(end of broadcast)---------------------------= =20 >TIP 5: Have you checked our extensive FAQ?=20 >=20 >http://www.postgresql.org/users-lounge/docs/faq.html=20 ---------------------------------------------------------------------------= --- Join the world's largest e-mail service with MSN Hotmail. Click Here ------=_NextPart_000_0003_01C1D2C8.68E14350 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I just worked out how to initialize a new = database=20 location and did that so all working now! I just have to recreate my=20 databases.  Thanks!! :)
----- Original Message -----
Fro= m:=20 Da= vid=20 Dunstone
To: jm.poure@freesurf.fr ; pgsql-admin@postgresql.org
Sent: Saturday, March 23, 2002 11:= 28=20 PM
Subject: Re: [ADMIN] access is den= ied=20 completely from postgresql!!

The Postgresql version is 7.0.3-8 and i am running it on Redhat 7.1.&n= bsp;=20 I dont really worry about the database backup because i had only basicall= y=20 created a few databases with test data at this stage.  So im kind of= new=20 to the PostgreSQL.  If i try to service it with Webmin, which worked= =20 before the crash, Webmin now returns the following kind of error..for exa= mple,=20 retrieving a list of users of the system:

SQL select * from pg_shadow failed : pg_shadow: Permissi= on=20 denied.

I can see the current data in the current database, just cant do anyth= ing=20 with that, add users, or give users permission etc.

I dont mind deleting the databases and starting again!!

thanks!

>From: Jean-Michel POURE
>Reply-To: jm.poure@freesurf.fr=20
>To: "David" ,=20
>Subject: Re: [ADMIN] access is denied completely from=20 postgresql!!=20
>Date: Sat, 23 Mar 2002 13:11:19 +0100=20
>=20
>Le Samedi 23 Mars 2002 12:23, David a =E9crit :=20
> > I have done nothing, my LInux server crashed, when i= went=20 back in, no user=20
> > had access to PostgreSQL.=20
> > How do i get access back?  Can I somehow just c= reate=20 a new environment with=20
> > a new database? i dont mind that!  I am just no= t=20 sure how to do it!=20
> > Do i have to remove PostgreSQL?  Cuz it says i = haev=20 to remove about 15=20
> > different dependancies!! which is a pain..and i dont= know=20 if it will=20
> > automatically work with Apache still if i was to do = that=20 and reinstall..=20
> > Help!!=20
>=20
>Don't do anything unless we understand what is going on.= =20
>1) What is the version of you PostgreSQL installed (rpm -q= =20 postgresql)?=20
>Alternatively, what is your linux distribution?=20
>2) Do you have a backup of your database (schema + data)?= =20
>3) What do the logs say when you try to start the database= =20 (probably with=20
>'service postgresql start')?=20
>=20
>Regards,=20
>Jean-Michel POURE=20
>=20
>---------------------------(end of=20 broadcast)---------------------------=20
>TIP 5: Have you checked our extensive FAQ?=20
>=20
>http://www.postgresql.org/users-lounge/docs/faq.html=20


Join the world’s largest e-mail service with MSN Hotmail. Click=20 Here
------=_NextPart_000_0003_01C1D2C8.68E14350-- From jm.poure@freesurf.fr Sat Mar 23 13:18:25 2002 Received: from www1.translationforge (unknown [212.11.36.58]) by postgresql.org (Postfix) with ESMTP id 7203947545D for ; Sat, 23 Mar 2002 08:18:25 -0500 (EST) Received: from there ([192.168.1.102]) by www1.translationforge (8.12.1/8.12.1) with SMTP id g2NDIP92028098; Sat, 23 Mar 2002 14:18:25 +0100 Message-Id: <200203231318.g2NDIP92028098@www1.translationforge> Content-Type: text/plain; charset="iso-8859-1" From: Jean-Michel POURE Reply-To: jm.poure@freesurf.fr Organization: Translationforge To: "David Dunstone" Subject: Re: access is denied completely from postgresql!! Date: Sat, 23 Mar 2002 14:18:25 +0100 X-Mailer: KMail [version 1.3.1] References: In-Reply-To: Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200203/287 X-Sequence-Number: 3821 Le Samedi 23 Mars 2002 13:28, vous avez =E9crit : >
>

The Postgresql version is 7.0.3-8 and i am running it on Redhat > 7.1.  I dont really worry about the database backup because i had on= ly > basically created a few databases with test data at this stage.  So = im > kind of new to the PostgreSQL.  If i try to service it with Webmin, > which worked before the crash, Webmin now returns the following kind of > error..for example, retrieving a list of users of the system:=20 Hi David, 1) Upgrade to 7.2 If you are starting with a fresh install, consider using PostgreSQL 7.2.=20 PostgreSQL 7.2 has many improvements, including WAL support (logging in cas= e=20 of crash) and much more... RedHat binary packages can be downloaded from=20 http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386/RedHat/RPMS/PByName.html. Download : postgresql-server-7.2-5 postgresql-contrib-7.2-5 postgresql-devel-7.2-5 postgresql-docs-7.2-5 postgresql-jdbc-7.2-5 postgresql-libs-7.2-5 postgresql-odbc-7.2-5 Also, you may be interested in these server-side languages (which are highl= y=20 recommanded): postgresql-perl-7.2-5 postgresql-python-7.2-5 postgresql-tcl-7.2-5 postgresql-tk-7.2-5 Upgrade all packages at once running : rpm -Uvh postgresql* rpm might answer dependencies are needed. Go to=20 http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386/RedHat/RPMS/ and download= =20 the required packages. 2) Install a fresh database delete /var/lib/pgsql/data directory content (not the directory itself). Then enter "service postgresql start" This should create a fresh database in /var/lib/pgsql/data/. 3) More information Detailed information can be found on : http://www.postgresql.org/idocs (interactive documentation) http://techdocs.postgresql.org (techdocs) To administer your database, you can also have a look at pgAdmin2=20 (http://pgadmin.postgresql.org). pgAdmin2 takes advantage of the lastest 7.= 2=20 improvements. Regards, Jean-Michel POURE From tgl@sss.pgh.pa.us Sat Mar 23 17:06:51 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 73467475450 for ; Sat, 23 Mar 2002 12:06:51 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g2NH6mS25815; Sat, 23 Mar 2002 12:06:48 -0500 (EST) To: "David" Cc: pgsql-admin@postgresql.org Subject: Re: access is denied completely from postgresql!! In-reply-to: References: Comments: In-reply-to "David" message dated "Sun, 24 Mar 2002 00:11:13 +1100" Date: Sat, 23 Mar 2002 12:06:48 -0500 Message-ID: <25812.1016903208@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/288 X-Sequence-Number: 3822 "David" writes: > If i try to service it with Webmin, which worked before the = > crash, Webmin now returns the following kind of error..for example, retriev= > ing a list of users of the system:=20 > SQL select * from pg_shadow failed : pg_shadow: Permission denied. > I can see the current data in the current database, just cant do anything= > with that, add users, or give users permission etc. Apparently Webmin is connecting as a non-superuser Postgres user. Check which user you are starting it as. Perhaps you have forgotten to set an appropriate PGUSER environment value? regards, tom lane