ARTIFACTORY: When it's safe to remove the admin user and how to recover it if necessary

ARTIFACTORY: When it's safe to remove the admin user and how to recover it if necessary

AuthorFullName__c
Johnson Nguyen
articleNumber
000005337
FirstPublishedDate
2022-07-19T12:40:43Z
lastModifiedDate
2025-05-15
VersionNumber
3
Removing an Admin User

Before removing an Admin User, please keep in mind that at least one internal Admin user is always maintained, but other Admin Users can be deprecated. 

To remove an Admin User, please go to the Administrator Tab → Users → Delete User by clicking on the Trash Can. 

User-added image
User-added image

Regaining Access to Artifactory


In the instance that the admin access has been lost, please follow these steps in order to recreate 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. After the last step, perform a rolling restart to the cluster (restart each node, one at a time, starting from the primary node and waiting for the previous node to come up fully before restarting the next).
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@*=password1
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.