Admin User Recovery:

ARTIFACTORY: How To Unlock A User(s) Who Is Locked Out Of Artifactory and Recover Admin Account

AuthorFullName__c
Johnson Nguyen
articleNumber
000005479
ft:sourceType
Salesforce
FirstPublishedDate
2022-11-30T09:04:09Z
lastModifiedDate
2022-11-30
VersionNumber
3
If the default Admin User has been lost, please follow these steps to regain access to the default Admin User.

1. This can be done by utilizing the Access bootstrap.creds:
Create a file called bootstrap.creds under $JFROG_HOME/artifactory/var/etc/access

**NOTE** For Artifactory HA Versions under 7.17.2. If you are running an Artifactory HA Cluster, make sure to do the changes on the primary node. 

2. Populate the file with the following content:
<admin user_name>@*=<your new password>
   **NOTE** You can also create the file with multiple lines to create multiple Admins 
IE, admin1@*=password
admin2@*=password2

3. Make sure the file has relevant permissions:
$ chmod 600 bootstrap.creds
$ chown artifactory:artifactory bootstrap.creds
OR
$ chmod 600 bootstrap.creds
$ chown 1030:1030 bootstrap.creds
**NOTE** The permissions must be assigned as 600. No other permissions will work.


4. **MUST DO** Perform a rolling restart:
After the third step, please perform a rolling restart to the cluster (restart each node, one at a time, starting from the primary node and waiting for the current node to come up fully before restarting the next).

After restarting the service(s), you should be able to log in with the newly created Admin Account.