Lists: | pgsql-general |
---|
From: | "Purusothaman A" <purusothaman(dot)a(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:15:57 |
Message-ID: | 3650d0d50610270215s7113cd91r3b7b55c7f6d8aa80@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Hi all,
I am using a Fedora Core 5 system.
I want to know what is the default username password for PostgreSQL, which
was installed with FC5.
:)
Purusothaman A
From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Purusothaman A <purusothaman(dot)a(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:20:23 |
Message-ID: | 20061027092023.GD570@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On Fri, Oct 27, 2006 at 02:45:57PM +0530, Purusothaman A wrote:
> Hi all,
>
> I am using a Fedora Core 5 system.
> I want to know what is the default username password for PostgreSQL, which
> was installed with FC5.
I'm not sure if there is one. However, usually you su to the postgres
user which will let you in without a password. There you use
"createuser" to make a user for yourself.
Note, it really depends how the distributor has set the system up.
Allowing the "postgres" user password-less access is common because it
allows cronjobs as user "postgres" (backups for example) to run without
any extra configuration.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:27:00 |
Message-ID: | 20061027092659.GD14485@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
am Fri, dem 27.10.2006, um 14:45:57 +0530 mailte Purusothaman A folgendes:
> Hi all,
>
> I am using a Fedora Core 5 system.
> I want to know what is the default username password for PostgreSQL, which was
> installed with FC5.
The postgres-User isn't a login-user. Become root (su ), and then
'su - postgres'.
(Debian, but i'm sure with FC5 the same)
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
From: | "Purusothaman A" <purusothaman(dot)a(at)gmail(dot)com> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:31:09 |
Message-ID: | 3650d0d50610270231i4b302036ia1154c9ccfb21aaa@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Thanks for your immediate reply.
I created new role "db1" and database "db1".
but I cannot login using
psql -Udb1 -ddb1 -hlocalhost
results
Fatal Error : Ident authentication failed for user "db1".
Waiting for your valuable suggestion.
Thanks in advance.
:)
Purusothaman A
On 10/27/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>
> On Fri, Oct 27, 2006 at 02:45:57PM +0530, Purusothaman A wrote:
> > Hi all,
> >
> > I am using a Fedora Core 5 system.
> > I want to know what is the default username password for PostgreSQL,
> which
> > was installed with FC5.
>
> I'm not sure if there is one. However, usually you su to the postgres
> user which will let you in without a password. There you use
> "createuser" to make a user for yourself.
>
> Note, it really depends how the distributor has set the system up.
> Allowing the "postgres" user password-less access is common because it
> allows cronjobs as user "postgres" (backups for example) to run without
> any extra configuration.
>
> Have a nice day,
> --
> Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > From each according to his ability. To each according to his ability to
> litigate.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFFQc9XIB7bNG8LQkwRAmi4AJ9usA+SNKCymGmbfQB7uVs/ntJtCQCfRsMW
> PnSDLDpq2jiM294we2TXh34=
> =85WE
> -----END PGP SIGNATURE-----
>
>
>
From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:43:26 |
Message-ID: | 20061027094326.GF14485@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
am Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A folgendes:
> Thanks for your immediate reply.
>
> I created new role "db1" and database "db1".
>
> but I cannot login using
> psql -Udb1 -ddb1 -hlocalhost
> results
> Fatal Error : Ident authentication failed for user "db1".
You arn't the user called 'db1'?
Either 'su - db1' and then psql, or change the settings in your
pg_hba.conf for this database and localhost to 'trust'.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 09:47:58 |
Message-ID: | 20061027094758.GE570@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On Fri, Oct 27, 2006 at 11:43:26AM +0200, A. Kretschmer wrote:
> am Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A folgendes:
> > Thanks for your immediate reply.
> >
> > I created new role "db1" and database "db1".
> >
> > but I cannot login using
> > psql -Udb1 -ddb1 -hlocalhost
> > results
> > Fatal Error : Ident authentication failed for user "db1".
>
> You arn't the user called 'db1'?
>
> Either 'su - db1' and then psql, or change the settings in your
> pg_hba.conf for this database and localhost to 'trust'.
Right. As pointed out, the default authentication method "ident" means
that the database user and the system user are linked, so system user
"db1" can login as database user "db1" without a password.
"trust" means anyone can login an anyone, which may or may not be what
you want.
You can define ident maps, where you state that system user "x" can
login without password as database user "y". Check the documentation.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From: | "Purusothaman A" <purusothaman(dot)a(at)gmail(dot)com> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 10:10:02 |
Message-ID: | 3650d0d50610270310u5ac997e7v7f9f68e573ba6a39@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Thanks for all of your valuable replies.
Please tell me, what should i do to login with syntax
psql -Uusername -h192.168.2.2 -dusername(database name).
Because I should be able to login from any login and also from any system.
:)
Purusothaman A
On 10/27/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>
> On Fri, Oct 27, 2006 at 11:43:26AM +0200, A. Kretschmer wrote:
> > am Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A
> folgendes:
> > > Thanks for your immediate reply.
> > >
> > > I created new role "db1" and database "db1".
> > >
> > > but I cannot login using
> > > psql -Udb1 -ddb1 -hlocalhost
> > > results
> > > Fatal Error : Ident authentication failed for user "db1".
> >
> > You arn't the user called 'db1'?
> >
> > Either 'su - db1' and then psql, or change the settings in your
> > pg_hba.conf for this database and localhost to 'trust'.
>
> Right. As pointed out, the default authentication method "ident" means
> that the database user and the system user are linked, so system user
> "db1" can login as database user "db1" without a password.
>
> "trust" means anyone can login an anyone, which may or may not be what
> you want.
>
> You can define ident maps, where you state that system user "x" can
> login without password as database user "y". Check the documentation.
>
> Have a nice day,
> --
> Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > From each according to his ability. To each according to his ability to
> litigate.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFFQdXOIB7bNG8LQkwRAripAJ9OVbCQxoJZv7MbC0J6kpx36cyq8QCfdXzR
> CygEQSlRzRTwk2KoZ9z5ZkE=
> =4ZZc
> -----END PGP SIGNATURE-----
>
>
>
From: | "chris smith" <dmagick(at)gmail(dot)com> |
---|---|
To: | "Purusothaman A" <purusothaman(dot)a(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 11:17:23 |
Message-ID: | 3c1395330610270417g55a866cft260ff5dc3ac82ce8@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On 10/27/06, Purusothaman A <purusothaman(dot)a(at)gmail(dot)com> wrote:
> Thanks for all of your valuable replies.
>
> Please tell me, what should i do to login with syntax
>
> psql -Uusername -h192.168.2.2 -dusername(database name).
>
> Because I should be able to login from any login and also from any system.
Set up your pg_hba.conf file to what you need.
I have a small article about this on my site:
http://www.designmagick.com/article/4/
The postgres documentation is here:
http://www.postgresql.org/docs/current/static/client-authentication.html
--
Postgresql & php tutorials
http://www.designmagick.com/
From: | Shane Ambler <pgsql(at)007Marketing(dot)com> |
---|---|
To: | Purusothaman A <purusothaman(dot)a(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, |
Date: | 2006-10-27 11:21:50 |
Message-ID: | 4541EBCE.8070007@007Marketing.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Purusothaman A wrote:
> Thanks for all of your valuable replies.
>
> Please tell me, what should i do to login with syntax
>
> psql -Uusername -h192.168.2.2 -dusername(database name).
>
> Because I should be able to login from any login and also from any system.
In your data directory you will find a file called pg_hba.conf - the
entries in there determine who can log in from what machine with what
sort of authentication.
There are plenty of notes explaining it in the file itself or you can
find explanations in the docs -
http://www.postgresql.org/docs/8.1/static/client-authentication.html
you will probably want to add something like -
# TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all 192.168.2.0/24 md5
and maybe -
host all all 127.0.0.1/32 md5
> :)
> Purusothaman A
>
> On 10/27/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>>
>> On Fri, Oct 27, 2006 at 11:43:26AM +0200, A. Kretschmer wrote:
>> > am Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A
>> folgendes:
>> > > Thanks for your immediate reply.
>> > >
>> > > I created new role "db1" and database "db1".
>> > >
>> > > but I cannot login using
>> > > psql -Udb1 -ddb1 -hlocalhost
>> > > results
>> > > Fatal Error : Ident authentication failed for user "db1".
>> >
>> > You arn't the user called 'db1'?
>> >
>> > Either 'su - db1' and then psql, or change the settings in your
>> > pg_hba.conf for this database and localhost to 'trust'.
>>
>> Right. As pointed out, the default authentication method "ident" means
>> that the database user and the system user are linked, so system user
>> "db1" can login as database user "db1" without a password.
>>
>> "trust" means anyone can login an anyone, which may or may not be what
>> you want.
>>
>> You can define ident maps, where you state that system user "x" can
>> login without password as database user "y". Check the documentation.
>>
>> Have a nice day,
>> --
>> Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
>> > From each according to his ability. To each according to his ability to
>> litigate.
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.1 (GNU/Linux)
>>
>> iD8DBQFFQdXOIB7bNG8LQkwRAripAJ9OVbCQxoJZv7MbC0J6kpx36cyq8QCfdXzR
>> CygEQSlRzRTwk2KoZ9z5ZkE=
>> =4ZZc
>> -----END PGP SIGNATURE-----
>>
>>
>>
>
--
Shane Ambler
pgSQL(at)007Marketing(dot)com
Get Sheeky @ http://Sheeky.Biz
From: | "Purusothaman A" <purusothaman(dot)a(at)gmail(dot)com> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: what is the default username password for PostgreSQL, which was installed with FC5. |
Date: | 2006-10-27 11:28:00 |
Message-ID: | 3650d0d50610270428h9b0cd02wb9bc8a0438c75442@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Hi all,
Now I changed postgresql database administrator login password and then
modified pg_hba.conf file with authentication mathod to md5 for all (roles +
database).
Now can use the folowing syntax from any login.
psql -Uusername -h192.168.2.2 -dusername(database name).
Hence I solved my problem.
Thanks for u all and your replies.
:)
Purusothaman A
On 10/27/06, Purusothaman A <purusothaman(dot)a(at)gmail(dot)com> wrote:
>
> Thanks for all of your valuable replies.
>
> Please tell me, what should i do to login with syntax
>
> psql -Uusername -h192.168.2.2 -dusername(database name).
>
> Because I should be able to login from any login and also from any
> system.
>
> :)
> Purusothaman A
>
> On 10/27/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>
> > On Fri, Oct 27, 2006 at 11:43:26AM +0200, A. Kretschmer wrote:
> > > am Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A
> > folgendes:
> > > > Thanks for your immediate reply.
> > > >
> > > > I created new role "db1" and database "db1".
> > > >
> > > > but I cannot login using
> > > > psql -Udb1 -ddb1 -hlocalhost
> > > > results
> > > > Fatal Error : Ident authentication failed for user "db1".
> > >
> > > You arn't the user called 'db1'?
> > >
> > > Either 'su - db1' and then psql, or change the settings in your
> > > pg_hba.conf for this database and localhost to 'trust'.
> >
> > Right. As pointed out, the default authentication method "ident" means
> > that the database user and the system user are linked, so system user
> > "db1" can login as database user "db1" without a password.
> >
> > "trust" means anyone can login an anyone, which may or may not be what
> > you want.
> >
> > You can define ident maps, where you state that system user "x" can
> > login without password as database user "y". Check the documentation.
> >
> > Have a nice day,
> > --
> > Martijn van Oosterhout < kleptog(at)svana(dot)org>
> > http://svana.org/kleptog/
> > > From each according to his ability. To each according to his ability
> > to litigate.
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> >
> > iD8DBQFFQdXOIB7bNG8LQkwRAripAJ9OVbCQxoJZv7MbC0J6kpx36cyq8QCfdXzR
> > CygEQSlRzRTwk2KoZ9z5ZkE=
> > =4ZZc
> > -----END PGP SIGNATURE-----
> >
> >
> >
>