How to change the password for 'access-admin'?

JFROG ACCESS: How to Change Your Default access-admin User Password

AuthorFullName__c
Andrei Komarov
articleNumber
000004431
ft:sourceType
Salesforce
FirstPublishedDate
2019-03-04T13:26:30Z
lastModifiedDate
2024-03-10T07:47:45Z
VersionNumber
12

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.

  1. Create the bootstrap.creds file under $ARTIFACTORY_HOME/access/etc/bootstrap.creds with the following content:
  2. Change permissions for the file using chmod 600 bootstrap.creds
  3. 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):

  1. Perform an SSH/login inside the Artifactory host machine (if this is an HA cluster, you can do this via any node)
  2. 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" }'