pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kevin@kevinkempterllc.com
To: pgsql-admin@postgresql.org
Subject: Re: creating user
Date: Mon, 10 Apr 2006 08:49:32 -0600
Message-ID: <200604100849.32863.kevin@kevinkempterllc.com> (raw)
In-Reply-To: <022f01c65ca1$38471370$cd00000a@sandhyar>
References: <022f01c65ca1$38471370$cd00000a@sandhyar>

On Monday 10 April 2006 07:18, sandhya wrote:
> Hi...
>  I want to know more about alter user /creating users.I am facing error if
> i give user with Login/Nologin..Why is it so? But it is working fine for
> Createdb/NoCreatedb.etc.
>
> sample=# ALTER user sandhya with LOGIN;
> ERROR:  syntax error at or near "LOGIN" at character 25
> LINE 1: ALTER user sandhya with LOGIN;
>
> Please explain me about this/Suggest Some Manual where in i can find more
> about this.I have gone through postgres site.
>
> -Sandhya

My experience creating users has always been from the command line. Not sure 
if this is what your asking about but just in case...

from the command line as postgres user (or another user with privelages to 
create users):

Usage:
  createuser [OPTION]... [USERNAME]

Options:
  -a, --adduser             user can add new users
  -A, --no-adduser          user cannot add new users
  -d, --createdb            user can create new databases
  -D, --no-createdb         user cannot create databases
  -P, --pwprompt            assign a password to new user
  -E, --encrypted           encrypt stored password
  -N, --unencrypted         do not encrypt stored password
  -i, --sysid=SYSID         select sysid for new user
  -e, --echo                show the commands being sent to the server
  -q, --quiet               don't write any messages
  --help                    show this help, then exit
  --version                 output version information, then exit

Connection options:
  -h, --host=HOSTNAME       database server host or socket directory
  -p, --port=PORT           database server port
  -U, --username=USERNAME   user name to connect as (not the one to create)
  -W, --password            prompt for password to connect

If one of -a, -A, -d, -D, and USERNAME is not specified, you will
be prompted interactively.



view thread (2+ messages)

Message-ID: <200604100849.32863.kevin@kevinkempterllc.com>
Permalink:  ../200604100849.32863.kevin@kevinkempterllc.com/
Also on:    postgresql.org/message-id/200604100849.32863.kevin@kevinkempterllc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: kevin@kevinkempterllc.com
  Subject: Re: creating user
  In-Reply-To: <200604100849.32863.kevin@kevinkempterllc.com>
  References: <022f01c65ca1$38471370$cd00000a@sandhyar> <200604100849.32863.kevin@kevinkempterllc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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