mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: restructure docs (#14421)
Closes #13434 Supersedes #14182 --------- Co-authored-by: Ethan <39577870+ethanndickson@users.noreply.github.com> Co-authored-by: Ethan Dickson <ethan@coder.com> Co-authored-by: Ben Potter <ben@coder.com> Co-authored-by: Stephen Kirby <58410745+stirby@users.noreply.github.com> Co-authored-by: Stephen Kirby <me@skirby.dev> Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
This commit is contained in:
co-authored by
Ethan
Ethan Dickson
Ben Potter
Stephen Kirby
Stephen Kirby
EdwardAngert
Edward Angert
parent
288df75686
commit
419eba5fb6
@@ -0,0 +1,27 @@
|
||||
# Password Authentication
|
||||
|
||||
Coder has password authentication enabled by default. The account created during
|
||||
setup is a username/password account.
|
||||
|
||||
## Disable password authentication
|
||||
|
||||
To disable password authentication, use the
|
||||
[`CODER_DISABLE_PASSWORD_AUTH`](../../reference/cli/server.md#--disable-password-auth)
|
||||
flag on the Coder server.
|
||||
|
||||
## Restore the `Owner` user
|
||||
|
||||
If you remove the admin user account (or forget the password), you can run the
|
||||
[`coder server create-admin-user`](../../reference/cli/server_create-admin-user.md)command
|
||||
on your server.
|
||||
|
||||
> Note: You must run this command on the same machine running the Coder server.
|
||||
> If you are running Coder on Kubernetes, this means using
|
||||
> [kubectl exec](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_exec/)
|
||||
> to exec into the pod.
|
||||
|
||||
## Reset a user's password
|
||||
|
||||
An admin must reset passwords on behalf of users. This can be done in the web UI
|
||||
in the Users page or CLI:
|
||||
[`coder reset-password`](../../reference/cli/reset-password.md)
|
||||
Reference in New Issue
Block a user