diff --git a/_data/toc.yaml b/_data/toc.yaml index f4f3007a48..70b380b1e2 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -1157,6 +1157,8 @@ toc: title: Create and manage teams - path: /datacenter/ucp/2.1/guides/admin/manage-users/permission-levels/ title: Permission levels + - path: /datacenter/ucp/2.1/guides/admin/manage-users/recover-a-user-password/ + title: Recover a user password - sectiontitle: Monitor and troubleshoot section: - path: /datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/ diff --git a/datacenter/ucp/2.1/guides/admin/manage-users/recover-a-user-password.md b/datacenter/ucp/2.1/guides/admin/manage-users/recover-a-user-password.md new file mode 100644 index 0000000000..424e55845a --- /dev/null +++ b/datacenter/ucp/2.1/guides/admin/manage-users/recover-a-user-password.md @@ -0,0 +1,29 @@ +--- +title: Recover a user password +description: Learn how to recover your Docker Datacenter credentials +keywords: docker, ucp, authentication +--- + +If you have administrator credentials to UCP, you can reset the password of +other users. + +If that user is being managed using an LDAP service, you need to change the +user password on that system. If the user account is managed using UCP, +log in with administrator credentials into the **UCP web UI**, navigate to +the **User Management** tab, and choose the user you want to change the +password. + +![](../../images/recover-a-user-password-1.png){: .with-border} + +If you're an administrator and forgot your password, you can ask other users +with administrator credentials to change your password. +If you're the only administrator, use **ssh** to login directly into a manager +node managed by UCP, and run: + +```none +{% raw %} +docker exec -it ucp-auth-api enzi \ + "$(docker inspect --format '{{ index .Args 0 }}' ucp-auth-api)" \ + passwd -i +{% endraw %} +``` diff --git a/datacenter/ucp/2.1/guides/images/recover-a-user-password-1.png b/datacenter/ucp/2.1/guides/images/recover-a-user-password-1.png new file mode 100644 index 0000000000..052754793a Binary files /dev/null and b/datacenter/ucp/2.1/guides/images/recover-a-user-password-1.png differ