pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcreateuser problem in 7.3.4 on Linux
5+ messages / 3 participants
[nested] [flat]
* createuser problem in 7.3.4 on Linux
@ 2003-12-17 08:39 Paul Power <paulp127@dublin.ie>
2003-12-17 10:26 ` Re: createuser problem in 7.3.4 on Linux Peter Eisentraut <peter_e@gmx.net>
2003-12-17 10:31 ` Re: createuser problem in 7.3.4 on Linux A.Bhuvaneswaran <bhuvan@symonds.net>
0 siblings, 2 replies; 5+ messages in thread
From: Paul Power @ 2003-12-17 08:39 UTC (permalink / raw)
To: pgsql-admin
I have been following the basic install process for Linux.<BR>
<BR>
As user postgres I have run initdb. I create a user named Administrator via the createuser script. All goes well and I get the response CREATE USER.<BR>
Then I try: <BR>
<BR>
psql -U Administrator template1<BR>
<BR>
and get the response:<BR>
psql: FATAL: IDENT authentication failed for user "Administrator".<BR>
<BR>
<BR>
The user Administrator is however in table pg_shadow.<BR>
<BR>
But if I try DROP USER Administrator I get<BR>
<BR>
ERROR: DROP USER: user "administrator" does not exist<BR>
<BR>
Note the last error has "administrator" rather than "Administrator".<BR>
<BR>
Does anybody have any idea what is happening? If not, does anybody know if it is possible to undo the initdb, so that I can create a new Linux user Administrator and use it to create the database via initdb?<BR>
<BR>
<BR>
<BR>
Any help will be much appreciated,<BR>
Paul Power <BR>
Planitas <BR>
Swords <BR>
Ireland <BR>
---- Msg sent via Dublin WebMail - http://www.dublin.ie/ <BR><hr>Msg sent via Dublin WebMail - http://www.dublin.ie/
<CODE><FONT SIZE=3><BR>
<BR>
------------------------------------------------------------------------------------------<BR>
This email was checked by TrustMail. For more information on TrustMail, contact details can be found at www.energis.com .This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. The views expressed within are those of the individual and not necessarily those of the company.<BR>
Please notify the Sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium.<BR>
------------------------------------------------------------------------------------------<BR>
</FONT></CODE>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: createuser problem in 7.3.4 on Linux
2003-12-17 08:39 createuser problem in 7.3.4 on Linux Paul Power <paulp127@dublin.ie>
@ 2003-12-17 10:26 ` Peter Eisentraut <peter_e@gmx.net>
2003-12-17 11:18 ` Re: createuser problem in 7.3.4 on Linux A.Bhuvaneswaran <bhuvan@symonds.net>
1 sibling, 1 reply; 5+ messages in thread
From: Peter Eisentraut @ 2003-12-17 10:26 UTC (permalink / raw)
To: paulp127@dublin.ie; pgsql-admin
Am Mittwoch, 17. Dezember 2003 09:39 schrieb Paul Power:
> But if I try DROP USER Administrator I get<BR>
> <BR>
> ERROR: DROP USER: user "administrator" does not exist<BR>
> <BR>
> Note the last error has "administrator" rather than "Administrator".<BR>
You need to double quote the name to preserve case.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: createuser problem in 7.3.4 on Linux
2003-12-17 08:39 createuser problem in 7.3.4 on Linux Paul Power <paulp127@dublin.ie>
2003-12-17 10:26 ` Re: createuser problem in 7.3.4 on Linux Peter Eisentraut <peter_e@gmx.net>
@ 2003-12-17 11:18 ` A.Bhuvaneswaran <bhuvan@symonds.net>
2003-12-17 11:21 ` Re: createuser problem in 7.3.4 on Linux Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 5+ messages in thread
From: A.Bhuvaneswaran @ 2003-12-17 11:18 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: paulp127@dublin.ie; pgsql-admin
> You need to double quote the name to preserve case.
IMO, in 7.3.4, these two scripts (createuser & dropuser) preserve the
case by default even without double quote. For example, 'createuser
Admin' makes an entry Admin(not admin) in pg_shadow. Similarly, dropuser
deletes the same entry even without double quote.
Else, am i missing some thing?
regards,
bhuvaneswaran
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: createuser problem in 7.3.4 on Linux
2003-12-17 08:39 createuser problem in 7.3.4 on Linux Paul Power <paulp127@dublin.ie>
2003-12-17 10:26 ` Re: createuser problem in 7.3.4 on Linux Peter Eisentraut <peter_e@gmx.net>
2003-12-17 11:18 ` Re: createuser problem in 7.3.4 on Linux A.Bhuvaneswaran <bhuvan@symonds.net>
@ 2003-12-17 11:21 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 5+ messages in thread
From: Peter Eisentraut @ 2003-12-17 11:21 UTC (permalink / raw)
To: A.Bhuvaneswaran <bhuvan@symonds.net>; +Cc: paulp127@dublin.ie; pgsql-admin
Am Mittwoch, 17. Dezember 2003 12:18 schrieb A.Bhuvaneswaran:
> > You need to double quote the name to preserve case.
>
> IMO, in 7.3.4, these two scripts (createuser & dropuser) preserve the
> case by default even without double quote. For example, 'createuser
> Admin' makes an entry Admin(not admin) in pg_shadow. Similarly, dropuser
> deletes the same entry even without double quote.
Sure, but we were not talking about createuser or dropuser.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: createuser problem in 7.3.4 on Linux
2003-12-17 08:39 createuser problem in 7.3.4 on Linux Paul Power <paulp127@dublin.ie>
@ 2003-12-17 10:31 ` A.Bhuvaneswaran <bhuvan@symonds.net>
1 sibling, 0 replies; 5+ messages in thread
From: A.Bhuvaneswaran @ 2003-12-17 10:31 UTC (permalink / raw)
To: paulp127@dublin.ie; +Cc: pgsql-admin
> As user postgres I have run initdb. I create a user named
> Administrator via the createuser script. All goes well and I get the
> response CREATE USER.
> Then I try:
>
> psql -U Administrator template1
>
> and get the response:
> psql: FATAL: IDENT authentication failed for user "Administrator".
>
Default installation uses ident authentication method. It requires os
user with the same name & mapping in pg_ident.conf. If i am correct, you
are looking for either trust/password authentication method. If so, edit
pg_hba.conf and comment the ident entry and uncomment trust entry.
> ERROR: DROP USER: user "administrator" does not exist
It looks strange. Ensure, you are not deleting the user twice -:).
Since, IMO, both createuser and dropuser scripts handle the case
properly.
regards,
bhuvaneswaran
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-12-17 11:21 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-17 08:39 createuser problem in 7.3.4 on Linux Paul Power <paulp127@dublin.ie>
2003-12-17 10:26 ` Peter Eisentraut <peter_e@gmx.net>
2003-12-17 11:18 ` A.Bhuvaneswaran <bhuvan@symonds.net>
2003-12-17 11:21 ` Peter Eisentraut <peter_e@gmx.net>
2003-12-17 10:31 ` 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