Creating the initial user administrator

You must define a user with the userAdmin built-in role assigned to it before a remote user can create user IDs and roles. You can create one or more user IDs with the userAdmin built-in role by using a remote MongoDB shell or the ZRUSR CREATE command on the z/TPF system. You must create at least one user ID with the userAdmin built-in role.

Procedure

  • Create a user ID with the userAdmin build-in role from a remote MongoDB shell by taking the following steps:
    1. Start the z/TPF server for MongoDB with security disabled by specifying the --noauth option on the ZINET definition.

      If the z/TPF server for MongoDB is started with security enabled by specifying the --auth option on the ZINET definition, you cannot create any user IDs from a remote MongoDB shell.

    2. Create a user ID with the userAdmin role defined.
    3. Restart the z/TPF server for MongoDB with security enabled by specifying the --auth option on the ZINET definition.
  • Create the user ID with the userAdmin build-in role defined by using the ZRUSR CREATE command on the z/TPF system as shown in the following example:
    ZRUSR CREATE NAME-AdminUser DATABASE-tpfdf PWD-AdminPwd ROLES-userAdmin