From sandhyar@amiindia.co.in Mon Apr 10 13:15:44 2006 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 BFDB711F7DDC for ; Mon, 10 Apr 2006 10:15:44 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.122 X-Spam-Level: X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.120, HTML_MESSAGE=0.001, UNPARSEABLE_RELAY=0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id p+te0Sf0txAP for ; Mon, 10 Apr 2006 10:13:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from venus.amiindia.co.in (unknown [203.199.198.234]) by postgresql.org (Postfix) with ESMTP id 714C411F7DE4 for ; Mon, 10 Apr 2006 10:11:53 -0300 (ADT) Received: from venus.amiindia.co.in (localhost.localdomain [127.0.0.1]) by venus.amiindia.co.in (8.12.11/8.12.11) with ESMTP id k3AD59B9002823 for ; Mon, 10 Apr 2006 18:35:10 +0530 Received: from sandhyar (unknown [10.0.0.205])by venus.amiindia.co.in (Postfix) with ESMTP id 83DBA332666for ; Mon, 10 Apr 2006 18:35:09 +0530 (IST) Message-ID: <022f01c65ca1$38471370$cd00000a@sandhyar> From: "sandhya" To: "Postgres" Subject: creating user Date: Mon, 10 Apr 2006 18:48:12 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_022C_01C65CCF.51E9CBA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:21 M:1 S:5 R:5 X-imss-settings: Baseline:5 C:3 M:3 S:4 R:3 (0.2500 0.7500) X-Archive-Number: 200604/87 X-Sequence-Number: 21256 This is a multi-part message in MIME format. ------=_NextPart_000_022C_01C65CCF.51E9CBA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3D# 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 ------=_NextPart_000_022C_01C65CCF.51E9CBA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi...
 I want to know more about alter user /creating = users.I=20 am facing error if i give user with Login/Nologin..Why is it = so?
But it is working fine for=20 Createdb/NoCreatedb.etc.
 
sample=3D# ALTER user sandhya with = LOGIN;
ERROR:  syntax=20 error at or near "LOGIN" at character 25
LINE 1: ALTER user sandhya = with=20 LOGIN;
 
Please explain me about this/Suggest Some Manual = where in i=20 can find more about this.I have gone through postgres site.
 
-Sandhya
------=_NextPart_000_022C_01C65CCF.51E9CBA0-- From kevin@kevinkempterllc.com Mon Apr 10 14:55:27 2006 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.