Reputation: 2020
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
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