pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Add user on old database with password
2+ messages / 2 participants
[nested] [flat]

* Add user on old database with password
@ 2003-06-13 05:18  Ramesh PAtel  <ramesh@banas.guj.nic.in>
  0 siblings, 1 reply; 2+ messages in thread

From: Ramesh PAtel @ 2003-06-13 05:18 UTC (permalink / raw)
  To: pgsql-admin

<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hi All</span></font></div>
<div align="left"><br>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">i am new on Postgresql7.3. so please 
help.</span></font></div>
<div align="left"><br>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">i have create one(ICPS) Database &nbsp;with 
Postgre user and password is NULL.</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">now i want to</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">1) create one user with password and 
all Grant on Database. it is a admin user</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">2) i want to add password to postgres 
user.</span></font></div>
<div align="left"><br>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Please Help</span></font></div>
<div align="left"><br>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Ramesh Patel</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">ramesh@banas.guj.nic.in</span></font></div>
<div align="left"></div>
</body>



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

* Re: Add user on old database with password
@ 2003-06-13 11:49  A.Bhuvaneswaran <bhuvan@symonds.net>
  parent: Ramesh PAtel  <ramesh@banas.guj.nic.in>
  0 siblings, 0 replies; 2+ messages in thread

From: A.Bhuvaneswaran @ 2003-06-13 11:49 UTC (permalink / raw)
  To: Ramesh PAtel <ramesh@banas.guj.nic.in>; +Cc: pgsql-admin

> 1) create one user with password and all Grant on Database. it is a admin
> user

The below steps would help:

$ su - postgres
$ createuser your_user
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) y 
CREATE USER

Use GRANT command to grant privileges to specified user.

> 2) i want to add password to postgres user.

1) If the authentication mode is trust then it is simple. Connect to any 
database as postgres and using alter user you must be able to set password 
for postgres user.

2) If the authentication mode is any other, then you may not be able to 
connect to any database as postgres user, since you didn't set password 
for postgres user. So, set the authentication mode to trust and restart 
postmaster and repeat step one to set password for postgres user. Finally 
restore the authentication mode.

regards,
bhuvaneswaran





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


end of thread, other threads:[~2003-06-13 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-13 05:18 Add user on old database with password Ramesh PAtel  <ramesh@banas.guj.nic.in>
2003-06-13 11:49 ` A.Bhuvaneswaran <bhuvan@symonds.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