Ashton Wiersdorf
Ashton Wiersdorf

Reputation: 2020

How do I set up username/password authentication with Hashicorp Vault

I'm just trying out the new Vault UI. I'd like to be able to log in with a username and password. How do I create a new user from the command line so I can log in with a username and password?

Upvotes: 8

Views: 13617

Answers (1)

Ashton Wiersdorf
Ashton Wiersdorf

Reputation: 2020

Create a new user like so:

vault write auth/userpass/users/<username> policies=default password=<passwd>

You have to be authenticated as root (or another user with sufficient permissions) and have enabled the userpass auth method.

Upvotes: 17

Related Questions