public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: barry kimelman <[email protected]>
Cc: [email protected]
Subject: Re: postgresql rookie needs help initial setup help
Date: Fri, 17 Jan 2020 16:39:35 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAEOpmvrbG-L7U04t9jkSoHcbwA9OwsdPcABsvBiw5dybf8zG1w@mail.gmail.com>
References: <CAEOpmvrbG-L7U04t9jkSoHcbwA9OwsdPcABsvBiw5dybf8zG1w@mail.gmail.com>

barry kimelman <[email protected]> writes:
> Now I want to be able to create a non administrator user so I tried the
> following:
> createuser --password -U postgres myusername
> I was prompted for the password for "postgres" but I was not prompted for
> the password for the new user.

I think the option you wanted was

  -P, --pwprompt            assign a password to new role

This is different from --password, which prompts you for your *own*
password in order to connect to the server.  Usually the only reason
to bother with that one is if you're writing some kind of script and
you would like it to prompt always, whether or not a password would
really be required.

			regards, tom lane





view thread (2+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: postgresql rookie needs help initial setup help
  In-Reply-To: <[email protected]>

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

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox