5.5 Using the opensearchuser Script

To add users or roles after installation, use the opensearchuser script, found in OSK_HOME/bin. The opensearchuser script has the following uses:

  • To add a new user or change password for a user:

    opensearchuser adduser [user]
  • To add roles for an existing user:

    opensearchuser addrole [user]
  • To view existing users:

    opensearchuser listusers
  • To view roles of a user:

    opensearchuser listrole [user]
  • To remove a user:

    opensearchuser removeuser [user]
  • To encrypt the given text:

    opensearchuser encrypt [text]

    This is used for encrypting the keystore password while configuring SSL. The password needs to be encrypted in the opensearch.yml file.