Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3949450
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:29:42+00:00 2026-05-20T01:29:42+00:00

I just installed PostgreSQL 8.4.7 with EnterpriseDB’s one-click installer on Mac OS 10.6.6. I

  • 0

I just installed PostgreSQL 8.4.7 with EnterpriseDB’s one-click installer on Mac OS 10.6.6. I would like to reproduce the following command from Ubuntu:

sudo -u postgres createuser --createdb --no-createrole --pwprompt --no-superuser [username]

but I’m unsure how to do this. An early version using dscl and taking care of the pwprompt option is

dscl -p localhost -create /Users/[username]

but I’m at a loss of how to apply the createdb, no-createrole and no-superuser options.

Any input would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:29:42+00:00Added an answer on May 20, 2026 at 1:29 am

    createuser is about creating users inside the postgresql database, not (directly) to do with your local system users, which is what dscl seems to be for.

    If your one-click install didn’t include the createuser commands etc., don’t worry: they are just wrappers for invoking administrative SQL commands and their functionality can be performed from psql anyway. For example, the createuser system command maps to the CREATE USER SQL command: http://www.postgresql.org/docs/9.0/static/sql-createuser.html

    If you can connect to your newly-installed postgres database using psql (e.g. psql -U postgres postgres) then you don’t need the other commands.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but
I have installed PostgreSQL to my Mac OS X (10.6), specifically the EnterpriseDB .
I've just installed PostgreSQL 9.x on my mac and when trying to run bundle
I've just installed PostgreSQL yesterday and it ran fine with the exact same command:
I've just installed ArcGIS Server Enterprise Advanced with ArcSDE and PostgreSQL, on a virtual
Just installed the SDK and ADK. while updating, it gives the following error: unexpected
I've decided to switch from MySQL to PostgreSQL recently, mostly just to learn a
I just installed PostgreSQL-8.4 on Ubuntu. How do I start it / its GUI,
I have just read Mac OSX Lion includes Postgresql ( Repairing Postgresql after upgrading
I got my new lion machine. Ran the PostgreSQL installer from the PostgreSQL site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.