pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to create a user with password
7+ messages / 5 participants
[nested] [flat]

* How to create a user with password
@ 2002-04-02 20:56 Web Administrator <webadmin@ucsd-pps.ucsd.edu>
  2002-04-02 22:40 ` How to create a user with password Web Administrator <webadmin@ucsd-pps.ucsd.edu>
  0 siblings, 1 reply; 7+ messages in thread

From: Web Administrator @ 2002-04-02 20:56 UTC (permalink / raw)
  To: pgsql-admin

Hi, all:

In the file of pg_hba.conf, I give the following parameter:

TYPE	DATABASE	IP_ADDRESS		MASK		AUTH_TYPE		AUTH_ARGUMENT
Local	all							password
host	all		127.122.122.0		255.255.255.0	password

	Now look what I got:

$su postgres
bash$psql template1
$password

 	What is the password for user 'postgres' ? How can I create one for this
user?

bash$createuser dbadmin
Shall the new user be allowed to create database?(y/n) y
Shall the new user be allowed to create more new user? (y/n) y
password: 'dbadminpassword'
FATAL 1: password authentication failed for user "postgres"
Createuser: creation of user 'dbadmin' failed

	If I change the config setting to

Local 	all					trust

	I can login to template1 database and create users and databases, but I
fail to give a password to a user. Look:

$su postgres
bash$createuser dbadmin with password 'dbpassword'

	Now it seems the 'dbpasswod' became the created user.

Anybody knows how to create password for 'postgres' ? How to create a user
with password?


--------------------------------------------

Hong Jin
h1jin@ucsd.edu

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* How to create a user with password
  2002-04-02 20:56 How to create a user with password Web Administrator <webadmin@ucsd-pps.ucsd.edu>
@ 2002-04-02 22:40 ` Web Administrator <webadmin@ucsd-pps.ucsd.edu>
  0 siblings, 0 replies; 7+ messages in thread

From: Web Administrator @ 2002-04-02 22:40 UTC (permalink / raw)
  To: pgsql-admin

> Hi, all:
> 
> In the file of pg_hba.conf, I give the following parameter:
> 
> TYPE	DATABASE	IP_ADDRESS		MASK		
> AUTH_TYPE		AUTH_ARGUMENT
> Local	all							
> password		
> host	all		127.122.122.0		255.255.255.0	
> password	
> 
> 	Now look what I got:
> 
> $su postgres
> bash$psql template1
> $password
> 
>  	What is the password for user 'postgres' ? How can I 
> create one for this user?
> 
> bash$createuser dbadmin
> Shall the new user be allowed to create database?(y/n) y
> Shall the new user be allowed to create more new user? (y/n) y
> password: 'dbadminpassword'
> FATAL 1: password authentication failed for user "postgres"
> Createuser: creation of user 'dbadmin' failed
> 
> 	If I change the config setting to 
> 
> Local 	all					trust
> 
> 	I can login to template1 database and create users and 
> databases, but I fail to give a password to a user. Look:
> 
> $su postgres
> bash$createuser dbadmin with password 'dbpassword'
> 
> 	Now it seems the 'dbpasswod' became the created user.
> 
> Anybody knows how to create password for 'postgres' ? How to 
> create a user with password?
> 
> 	
> --------------------------------------------
> 
> Hong Jin
> h1jin@ucsd.edu
> 

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* How to create a user with password
@ 2002-04-03 17:07 Web Administrator <webadmin@ucsd-pps.ucsd.edu>
  2002-04-03 20:51 ` Re: How to create a user with password Srinivasa R Chava <s.chava@wcom.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Web Administrator @ 2002-04-03 17:07 UTC (permalink / raw)
  To: pgsql-admin; +Cc: Jin, Hong <h1jin@ucsd.edu>

Hi, all:
 
 In the file of pg_hba.conf, I give the following parameter:
 
 TYPE	DATABASE	IP_ADDRESS		MASK		
 AUTH_TYPE		AUTH_ARGUMENT
 Local	all							
 password		
 host	all		127.122.122.0		255.255.255.0	
 password	
 
 	Now look what I got:
 
 $su postgres
 bash$psql template1
 $password
 
  	What is the password for user 'postgres' ? How can I 
 create one for this user?
 
 bash$createuser dbadmin
 Shall the new user be allowed to create database?(y/n) y
 Shall the new user be allowed to create more new user? (y/n) y
 password: 'dbadminpassword'
 FATAL 1: password authentication failed for user "postgres"
 Createuser: creation of user 'dbadmin' failed
 
 	If I change the config setting to 
 
 Local 	all					trust
 
 	I can login to template1 database and create users and 
 databases, but I fail to give a password to a user. Look:
 
 $su postgres
 bash$createuser dbadmin with password 'dbpassword'
 
 	Now it seems the 'dbpasswod' became the created user.
 
 Anybody knows how to create password for 'postgres' ? How to 
 create a user with password?

 	
 -------------------------------------------- 
 Hong Jin
 h1jin@ucsd.edu

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: How to create a user with password
  2002-04-03 17:07 How to create a user with password Web Administrator <webadmin@ucsd-pps.ucsd.edu>
@ 2002-04-03 20:51 ` Srinivasa R Chava <s.chava@wcom.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Srinivasa R Chava @ 2002-04-03 20:51 UTC (permalink / raw)
  To: webadmin@ucsd-pps.ucsd.edu; +Cc: pgsql-admin@postgresql.org, "Jin, Hong" <h1jin@ucsd.edu>

login using trust authentication method. Then change the password
for postgresql user with 
'alter user command. I think this will work .
Thanks
chava
-- 

Srinivasa R Chava (Chava) <s.chava@wcom.com>
 - Boss: Sean T Laduderdale <sean.lauderdale@wcom.com>
vnet4603575
Application Developer
Corporate Intra/Internet Systems
WORLDCOM - http://www.worldcom.com/ - NASDAQ:WCOM 
500 Clinton Center Drive (Corporate Headquarters)
Clinton, Mississippi (MS) USA  39056
(601)460-3122 / vnet4603122 / (800)844-1009 / FAX(601)460-8257



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: How to create a user with password
@ 2002-04-04 12:08 Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
  2002-04-04 12:27 ` Re: How to create a user with password Nasir Simbolon <nasir@3wsi.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Felipe Nascimento @ 2002-04-04 12:08 UTC (permalink / raw)
  To: pgsql-admin

use the utility pg_passwd. The argument is the file that will hold the
passwords
 $pg_passwd  passfile 
Username:postgres 
New password: 
Re-enter new password: 

-----Original Message-----
From: Web Administrator [mailto:webadmin@ucsd-pps.ucsd.edu]
Sent: quarta-feira, 3 de abril de 2002 14:07
To: pgsql-admin@postgresql.org
Cc: Jin, Hong
Subject: [ADMIN] How to create a user with password


Hi, all: 
  
 In the file of pg_hba.conf, I give the following parameter: 
  
 TYPE   DATABASE        IP_ADDRESS              MASK            
 AUTH_TYPE              AUTH_ARGUMENT 
 Local  all                                                     
 password               
 host   all             127.122.122.0           255.255.255.0   
 password       
  
        Now look what I got: 
  
 $su postgres 
 bash$psql template1 
 $password 
  
        What is the password for user 'postgres' ? How can I 
 create one for this user? 
  
 bash$createuser dbadmin 
 Shall the new user be allowed to create database?(y/n) y 
 Shall the new user be allowed to create more new user? (y/n) y 
 password: 'dbadminpassword' 
 FATAL 1: password authentication failed for user "postgres" 
 Createuser: creation of user 'dbadmin' failed 
  
        If I change the config setting to 
  
 Local  all                                     trust 
  
        I can login to template1 database and create users and 
 databases, but I fail to give a password to a user. Look: 
  
 $su postgres 
 bash$createuser dbadmin with password 'dbpassword' 
  
        Now it seems the 'dbpasswod' became the created user. 
  
 Anybody knows how to create password for 'postgres' ? How to 
 create a user with password? 
        
 -------------------------------------------- 
 Hong Jin 
 h1jin@ucsd.edu 

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: How to create a user with password
  2002-04-04 12:08 Re: How to create a user with password Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
@ 2002-04-04 12:27 ` Nasir Simbolon <nasir@3wsi.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Nasir Simbolon @ 2002-04-04 12:27 UTC (permalink / raw)
  To: pgsql-admin

Also you need to specify the file name of password file in AUTH_ARGUMENT 
parameter in pg_hba.conf file.

TYPE   DATABASE        IP_ADDRESS              MASK          
  AUTH_TYPE              AUTH_ARGUMENT 
  Local  all                                                     
  password               passfile
  



> use the utility pg_passwd. The argument is the file that will hold the
> passwords
>  $pg_passwd  passfile 
> Username:postgres 
> New password: 
> Re-enter new password: 
> 
> -----Original Message-----
> From: Web Administrator [mailto:webadmin@ucsd-pps.ucsd.edu]
> Sent: quarta-feira, 3 de abril de 2002 14:07
> To: pgsql-admin@postgresql.org
> Cc: Jin, Hong
> Subject: [ADMIN] How to create a user with password
> 
> 
> Hi, all: 
>   
>  In the file of pg_hba.conf, I give the following parameter: 
>   
>  TYPE   DATABASE        IP_ADDRESS              MASK            
>  AUTH_TYPE              AUTH_ARGUMENT 
>  Local  all                                                     
>  password               
>  host   all             127.122.122.0           255.255.255.0   
>  password       
>   
>         Now look what I got: 
>   
>  $su postgres 
>  bash$psql template1 
>  $password 
>   
>         What is the password for user 'postgres' ? How can I 
>  create one for this user? 
>   
>  bash$createuser dbadmin 
>  Shall the new user be allowed to create database?(y/n) y 
>  Shall the new user be allowed to create more new user? (y/n) y 
>  password: 'dbadminpassword' 
>  FATAL 1: password authentication failed for user "postgres" 
>  Createuser: creation of user 'dbadmin' failed 
>   
>         If I change the config setting to 
>   
>  Local  all                                     trust 
>   
>         I can login to template1 database and create users and 
>  databases, but I fail to give a password to a user. Look: 
>   
>  $su postgres 
>  bash$createuser dbadmin with password 'dbpassword' 
>   
>         Now it seems the 'dbpasswod' became the created user. 
>   
>  Anybody knows how to create password for 'postgres' ? How to 
>  create a user with password? 
>         
>  -------------------------------------------- 
>  Hong Jin 
>  h1jin@ucsd.edu 


-- 
"Having nothing, nothing can he lose."
		-- William Shakespeare, "Henry VI"






^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: How to create a user with password]
@ 2002-04-04 12:30 Nasir Simbolon <nasir@3wsi.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Nasir Simbolon @ 2002-04-04 12:30 UTC (permalink / raw)
  To: pgsql-admin


Also you need to specify the file name of password file in AUTH_ARGUMENT 
parameter in pg_hba.conf file.

TYPE   DATABASE        IP_ADDRESS              MASK          
  AUTH_TYPE              AUTH_ARGUMENT 
  Local  all                                                     
  password               passfile
  



> use the utility pg_passwd. The argument is the file that will hold the
> passwords
>  $pg_passwd  passfile 
> Username:postgres 
> New password: 
> Re-enter new password: 
> 
> -----Original Message-----
> From: Web Administrator [mailto:webadmin@ucsd-pps.ucsd.edu]
> Sent: quarta-feira, 3 de abril de 2002 14:07
> To: pgsql-admin@postgresql.org
> Cc: Jin, Hong
> Subject: [ADMIN] How to create a user with password
> 
> 
> Hi, all: 
>   
>  In the file of pg_hba.conf, I give the following parameter: 
>   
>  TYPE   DATABASE        IP_ADDRESS              MASK            
>  AUTH_TYPE              AUTH_ARGUMENT 
>  Local  all                                                     
>  password               
>  host   all             127.122.122.0           255.255.255.0   
>  password       
>   
>         Now look what I got: 
>   
>  $su postgres 
>  bash$psql template1 
>  $password 
>   
>         What is the password for user 'postgres' ? How can I 
>  create one for this user? 
>   
>  bash$createuser dbadmin 
>  Shall the new user be allowed to create database?(y/n) y 
>  Shall the new user be allowed to create more new user? (y/n) y 
>  password: 'dbadminpassword' 
>  FATAL 1: password authentication failed for user "postgres" 
>  Createuser: creation of user 'dbadmin' failed 
>   
>         If I change the config setting to 
>   
>  Local  all                                     trust 
>   
>         I can login to template1 database and create users and 
>  databases, but I fail to give a password to a user. Look: 
>   
>  $su postgres 
>  bash$createuser dbadmin with password 'dbpassword' 
>   
>         Now it seems the 'dbpasswod' became the created user. 
>   
>  Anybody knows how to create password for 'postgres' ? How to 
>  create a user with password? 
>         
>  -------------------------------------------- 
>  Hong Jin 
>  h1jin@ucsd.edu 


-- 
"Having nothing, nothing can he lose."
		-- William Shakespeare, "Henry VI"


-- 
"Having nothing, nothing can he lose."
		-- William Shakespeare, "Henry VI"






^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2002-04-04 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02 20:56 How to create a user with password Web Administrator <webadmin@ucsd-pps.ucsd.edu>
2002-04-02 22:40 ` Web Administrator <webadmin@ucsd-pps.ucsd.edu>
2002-04-03 17:07 How to create a user with password Web Administrator <webadmin@ucsd-pps.ucsd.edu>
2002-04-03 20:51 ` Srinivasa R Chava <s.chava@wcom.com>
2002-04-04 12:08 Re: How to create a user with password Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
2002-04-04 12:27 ` Nasir Simbolon <nasir@3wsi.com>
2002-04-04 12:30 Re: How to create a user with password] Nasir Simbolon <nasir@3wsi.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox