1

I need create a user only to create others users, but, i don't know how create a grant to this? Exist a method for this, or i need use GRANT ALL PRIVILEGES?

1 Answer 1

3

You can find the available permissions here: http://www.postgresql.org/docs/9.1/static/sql-createuser.html

I believe the one you are looking for is CREATEUSER

The full command you'd want to execute is:

CREATE USER username WITH CREATEUSER; 
Sign up to request clarification or add additional context in comments.

2 Comments

I'd say this is correct. I'd also suggest that you might like to do something like this on the command line: createuser -P -s -e <username>. I personally find that way of doing it handier.
\h CREATE USER may also help ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.