Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1505

Improve "Create an Administrator with Superuser Credentials" docs

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      The recommendations on "Create an Administrator with Superuser Credentials" aren't entirely clear. Why not just create and admin / superuser that can do everything since this user can give himself those roles anyway?

      It seems that most users would expect to have this sort of admin user rather than and admin user that can only administer user roles. Ideally, this section would include an example (for easy copy/paste) for initializing this user. For example, this should create an admin user that has all necessary roles to do anything:

      db.addUser(

      { user: "admin", pwd: "CHANGEME", roles: [ "userAdminAnyDatabase","dbAdminAnyDatabase","readWriteAnyDatabase", "clusterAdmin"] }

      )

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            mark.helmstetter@mongodb.com Mark Helmstetter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 23 weeks, 2 days ago