3 Authentication / Authorization
For convenience, the programs createuser and dropuser are provided as wrappers around these SQL commands that can be called from the shell command line: createuser name dropuser name createuser --pwprompt --no-createdb --no-adduser <username> SQL-based user creationpostgres=# CREATE USER <username> WITH PASSWORD 'secret'; Host-based Authentication with pg_hba.confIf you want to authorize a connection from a host 211.222.123.321 you had to add the following line to your pg_hba.conf: host all all 211.222.123.321 255.255.255.255 trust Please take note this is a truly generous way for an auhorization from this host. You might consider a more restrictive fashion. See the outcommented samples within the file. pg_ctl reload Related Links
|
copyright by reto - created with mytexi
$Id: authen.html,v 1.30 2007/03/07 08:41:03 webcms Exp $