LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

elasticsearch-users

Manage file-based Elasticsearch users

TLDR

List users
$ elasticsearch-users list
copy
Add a user
$ elasticsearch-users useradd [username] -p [password] -r [roles]
copy
Delete a user
$ elasticsearch-users userdel [username]
copy
Change password
$ elasticsearch-users passwd [username]
copy
Add role to user
$ elasticsearch-users roles [username] -a [role]
copy
Remove role from user
$ elasticsearch-users roles [username] -r [role]
copy

SYNOPSIS

elasticsearch-users command [options]

DESCRIPTION

elasticsearch-users manages file-based users for Elasticsearch's native realm. These users are stored locally in the node's configuration directory and don't require an external authentication system. The tool is part of the Elasticsearch security features.When listing users, only those registered on the local node are shown. In a multi-node cluster, file-based users must be managed on each node separately.

PARAMETERS

-p pass

User password (must be at least 6 characters). If omitted, prompts interactively.
-r roles
Comma-separated list of roles. With useradd, assigns roles. With roles, removes roles.
-a roles
Add comma-separated roles (used with roles subcommand).

SUBCOMMANDS

useradd

Add a user.
userdel
Delete a user.
passwd
Change password.
roles
Manage user roles.
list
List users.

INSTALL

nix profile install nixpkgs#elasticsearch
copy

CAVEATS

Users are stored in config/users and roles in config/users_roles. Changes apply only to the local node; synchronize these files across cluster nodes manually. Requires the X-Pack security features to be enabled.

HISTORY

elasticsearch-users ships with Elasticsearch's security features (originally part of the commercial X-Pack plugin, made free under the Basic license in Elasticsearch 6.8/7.1). It provides lightweight authentication without requiring LDAP, Active Directory, or other external realms.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid