🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problemas con Postgres

#7675
From: PUAS the HEDGEHOG
Date: Wed, 05 Feb 2003 23:06
47 lines
2649 bytes
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"
> 

-- 
PUAS the HEDGEHOG
puas@ayuda-es.net
http://ayuda-es.net/~puas
clave GnuPG en la web
Technical Details
Message-ID: <slrnb4366o.d9.puas@casper.palacios.homelinux.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!172-mad2-x66.libre.retevision.ES!not-for-mail
References: <3E3FDAF0.7000603@ya.com>

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-06 09:35:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!172-mad2-x66.libre.retevision.ES!not-for-mail
From: PUAS the HEDGEHOG <puas@ayuda-es.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problemas con Postgres
Date: Thu, 6 Feb 2003 00:06:00 +0100
Lines: 47
Message-ID: <slrnb4366o.d9.puas@casper.palacios.homelinux.org>
References: <3E3FDAF0.7000603@ya.com>
NNTP-Posting-Host: 172-mad2-x66.libre.retevision.es (62.83.169.172)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1044552912 40186793 62.83.169.172 (16 [120344])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.4 (Linux)