🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7697

Re: Problemas con Postgres

#7697
From: Isidro Merayo Castellano
Date: Fri, 07 Feb 2003 16:19
51 lines
3245 bytes
PUAS the HEDGEHOG wrote:
> La soluci�n la encontrar�s en /etc/postgresql/pg_hba.conf
> 
> Ver�s que por defecto, para acceder a una base de datos, basta con tener
> una ident igual al username.
> 
> La soluci�n que yo he visto m�s pr�ctica es cambiar las directivas de
> seguridad para que solicite una contrase�as en lugar de contrastar
> idents, que son f�cilmente spoofeables.
> 
> As� es como lo tengo yo ahora:
> -----------------------------------
> local        all                                           password
> host         all         127.0.0.1     255.0.0.0           password
> host         all         0.0.0.0       0.0.0.0             password
> 
> As� es como ven�a
> ------------------------------------
> #local        all                                           ident sameuser
> #host         all         127.0.0.1     255.0.0.0           ident sameuser
> #host         all         0.0.0.0       0.0.0.0             reject
> 
> <Isidro Merayo Castellano> coment�: (Tue, 04 Feb 2003 16:23:28 +0100)
> 
>>Hola.
>>Hasta ahora cachareando con MySQL, pero debido a que a esta BBDD le 
>>faltan cosas importantes, me he decidido a pasar a Postgres (muchas m�s 
>>funcionalidades).
>>Ahora mi problema:
>>
>>
>>
>>$ su - postgres
>>
>>$ /usr/bin/postmaster -o -i -D /usr/local/pgsql/data &
>>
>>$ createuser --username=phpBB
>>Enter name of user to add: phpBB
>>Shall the new user be allowed to create databases? (y/n) y
>>Shall the new user be allowed to create more new users? (y/n) n
>>FATAL 1:  IDENT authentication failed for user "phpBB"
>>psql: FATAL 1:  IDENT authentication failed for user "phpBB"
>>
> 
> 
Gracias.
He modificado el fichero (en RH8.0 no lo hay, hay uno 
/usr/share/pgsql/pg_hba.conf.sample lo he copiado en 
/usr/share/pgsql/pg_hba.conf y he a�adido tu comentarios) pero sigue igual.

	Isidro
Technical Details
Message-ID: <b20mad$hme$1@news.ya.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!easynet-quince!easynet-melon!easynet.net!bashful.rediris.es!news.ya.com!yacom!not-for-mail
References: <3E3FDAF0.7000603@ya.com> <slrnb4366o.d9.puas@casper.palacios.homelinux.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,66249386ebfdc5e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-02-07 08:20:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!easynet-quince!easynet-melon!easynet.net!bashful.rediris.es!news.ya.com!yacom!not-for-mail
From: Isidro Merayo Castellano <imc@ya.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problemas con Postgres
Date: Fri, 07 Feb 2003 17:19:29 +0100
Organization: ya.com internet factory
Lines: 53
Message-ID: <b20mad$hme$1@news.ya.com>
References: <3E3FDAF0.7000603@ya.com> <slrnb4366o.d9.puas@casper.palacios.homelinux.org>
NNTP-Posting-Host: 80-36-168-253.adsl.ya.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.ya.com 1044634765 18126 80.36.168.253 (7 Feb 2003 16:19:25 GMT)
X-Complaints-To: newsmaster@ya.com
NNTP-Posting-Date: Fri, 7 Feb 2003 16:19:25 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021223
X-Accept-Language: es
In-Reply-To: <slrnb4366o.d9.puas@casper.palacios.homelinux.org>
X-Enigmail-Version: 0.71.0.0
X-Enigmail-Supports: pgp-inline, pgp-mime