For Artifactory versions below 6.8: If you’re running an Artifactory HA cluster, be sure to execute your changes on the primary node. You can reset the access-admin user password (which includes cases where the password is unknown or has been forgotten) by following these steps:
-
Before 6.8.0: You can reset the access-admin user password with the following steps (requires an instance/cluster restart):
- This can also be useful in case the password of the access-admin user is unknown, or you are uncertain about the password.
- Create the bootstrap.creds file under $ARTIFACTORY_HOME/access/etc/bootstrap.creds with the following content:
- access-admin@127.0.0.1=newStrongPassword
- Change permissions for the file using chmod 600 bootstrap.creds
- Restart the Artifactory instance, performing a rolling restart for the cluster (i.e., restarting each node beginning with the master node)
For Artifactory versions above 6.8: You may use the method above or the one that follows, as both work well. For the method below, use the curl command tool from Access' (Artifactory's) host machine (NOTE: you’ll need to know the existing password):
- Perform an SSH/login inside the Artifactory host machine (if this is an HA cluster, you can do this via any node)
- Issue the following command (replacing the newStrongPassword string with your desired password):
- curl -XPATCH -uaccess-admin:password http://localhost:8040/access/api/v1/users/access-admin -H "Content-Type: application/json" -d '{ "password": "newStrongPassword" }'