[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: postgresql help - administrator user pw?

On Sat, 2009-04-04 at 11:34 -0700, ann kok wrote:
> Hi
> Anyone familair to postgresql
> Can I know how to set the pw for the administrator user?
> I do try to check the google and posgrssql website but don't understand it
> by default, the postgresql doesn't need pw but 
> Now I am trying to install software which needs to provide postgresql database info
> After I fill the postgresql administrator user as postgres, the next step is pw of the administrator user.  I give it "Enter" as this user is empty pw but it  won't let me passing next step!  
> The installation step is command line eg:
> first db user:
> then db pw:
> then db name:
> then db administrator db
> then db administraotr pw
> Thank you for your help
on local machine, user is postgres and postgres user doesn't by default
have a password.

# psql -U postgres
Welcome to psql 8.1.11, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# \q

any other machine would require configuration
of /var/lib/pgsql/data/pg_hba.conf to allow for authentication
and /var/lib/pgsql/data/postresql.conf to allow for tcp connections.
User postgres is not really suitable for an application or allowed to
login from anything other than localhost.

typically, you would want to login as user postgresql and create users
for various things like the application and set privileges. You probably
can't do this without referring to postgresql

this might be useful...

I tend to use pgadmin3 or phppgadmin or webmin for things like adding
users and setting users passwords & privileges because I'm lazy and I
forget the actual commands. A user must have a database in order to


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]