Change user password: Difference between revisions

From MediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<tabber>
<tabber>
|-|CLI=
|-|CLI=
= Overview =
This page describes how to change the OpenStack password of a user via CLI.


= Change password =
= Change password =

Revision as of 15:51, 3 July 2024

Change password

Do this with a high privileges user:

# Set some variables
domain_name=""    # The OpenStack domain in which the user resided, for example: stepping stone AG
domain_user=""    # The OpenStack user name, for example: sst-mei
# user_id
openstack user show \
    --domain "${domain_name}" \
    ${domain_user}

# Note the space at the start of the line. It prevents bash from saving this line to your bash history
 new_password=''
openstack user set \
    --domain "${domain_name}" \
    --password "${new_password}" \
    ${domain_user}

unset new_password