Changing passwords
The following command will change the password for the admin
user.
-
Set the old and new password in the environment.
read -s OLD_PASSWORD
read -s NEW_PASSWORD
-
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