Changing passwords

The following command will change the password for the admin user.

  1. Set the old and new password in the environment.

    read -s OLD_PASSWORD
    read -s NEW_PASSWORD
  2. Change the password on Nexus.

    curl -ifu admin:"${OLD_PASSWORD}" \
      -X PUT -H 'Content-Type: text/plain' \
      --data "${NEW_PASSWORD}" \
      http://bootserver/nexus/service/rest/v1/security/users/admin/change-password