X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id CA0BF11F6294 for ; Mon, 10 Apr 2006 11:55:27 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.55 X-Spam-Level: X-Spam-Status: No, score=0.55 required=5 tests=[NO_REAL_NAME=0.55] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id BmKGE7S+AeIE for ; Mon, 10 Apr 2006 11:55:15 -0300 (ADT) X-Greylist: delayed 00:06:38.669424 by SQLgrey- Received: from outbound-mail-14.bluehost.com (outbound-mail-14.bluehost.com [70.96.188.114]) by postgresql.org (Postfix) with SMTP id 396D311F61EC for ; Mon, 10 Apr 2006 11:55:18 -0300 (ADT) Received: (qmail 16850 invoked by uid 0); 10 Apr 2006 14:48:39 -0000 Received: from unknown (HELO box54.bluehost.com) (70.98.111.54) by mailproxy1.bluehost.com with SMTP; 10 Apr 2006 14:48:39 -0000 Received: from [65.88.67.254] (helo=betyt2kfkp61.corp.kpmgconsulting.com) by box54.bluehost.com with esmtp (Exim 4.52) id 1FSxh1-0003SB-Df for pgsql-admin@postgresql.org; Mon, 10 Apr 2006 08:48:39 -0600 From: kevin@kevinkempterllc.com To: pgsql-admin@postgresql.org Subject: Re: creating user Date: Mon, 10 Apr 2006 08:49:32 -0600 User-Agent: KMail/1.9.1 References: <022f01c65ca1$38471370$cd00000a@sandhyar> In-Reply-To: <022f01c65ca1$38471370$cd00000a@sandhyar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604100849.32863.kevin@kevinkempterllc.com> X-Identified-User: {840:box54.bluehost.com:kevinkem:kevinkempterllc.com} {sentby:bopbeforesmtp 65.88.67.254 authed with kevinkempterllc.com} X-Archive-Number: 200604/94 X-Sequence-Number: 21263 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.