For more information, seeFile-based user authentication. To ensure that Elasticsearch can read the user and role information at startup, runelasticsearch-users useraddas the same user you use to run Elasticsearch. Running the command as root or some other user updates the permissions for theusers...
elasticsearchuser adduser [user] To assign roles to an existing user: elasticsearchuser addrole [user] Use commas to separate the roles assigned to a user. To view existing users: elasticsearchuser listusers To view roles of a user: elasticsearchuser listrole [user] To remove a user: elastic...
elasticsearchuser buildkey This command creates a new key to encrypt password in text file. For example, you may want to create a superuser with the roles of admin and security assigned to the superuser. elasticsearchuser adduser superuser Enter a password and confirm the password. elasticsearch...