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

Improve "Create an Administrator with Superuser Credentials" docs

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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"] }

      )

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

              Created:
              Updated:
              Resolved:
              10 years, 34 weeks, 3 days ago