dbTalk Databases Forums  

any way to remove a password?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss any way to remove a password? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Berkman
 
Posts: n/a

Default any way to remove a password? - 10-14-2004 , 12:17 AM






Is there any way to remove a password, specifically from the postgres
user? I installed the 8.0 Windows version via the installer, and it
forces you to set a password. I'd like to reset this so that there is
no password (basically, to match the setup on several other machines -
and no, for a number of reasons it's not feasible to just set
passwords on those other machines).

I know about the alter user command, but I haven't seen a way to use
it to remove a password. I've tried:

alter user postgres with password '';
alter user postgres with password null;

The first one doesn't work and the second returns an error.

Does anyone know whether this is possible? Thanks.

Neil

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: any way to remove a password? - 10-14-2004 , 05:48 AM






Neil Berkman <neil.berkman (AT) gmail (DOT) com> writes:
Quote:
Is there any way to remove a password, specifically from the postgres
user?
You can set the field to NULL in pg_shadow, though I really wonder why
you'd bother, if you're not using password authentication.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.