Monday, October 9, 2023

How to Recover Artifactory Admin password | Artifactory admin password unlock | Forgotten Artifactory Admin Password | How to Recover Artifactory admin password

Let's say you have forgotten Artifactory admin password. How to reset or retrieve Artifactory admin password? Here below are the steps for resetting Artifactory admin password:

Please follow the steps to recover Artifactory Admin password:

Pre-requisites:

Steps to reset Artifactory Admin password:

1. Login to Artifactory instance. Navigate to below directory:

cd /opt/jfrog/artifactory/var/etc

2. Create a file called bootstrap.creds under access directory

sudo vi access/bootstrap.creds

3.  Add  below entries:

admin@*=Admin@12345

4. Make sure the file has relevant permissions: 

sudo chmod 600 access/bootstrap.creds
sudo chown artifactory:artifactory access/bootstrap.creds

5. Restart Artifactory service (you need to stop the service first and then start again)
sudo systemctl stop artifactory.service
sudo systemctl start artifactory.service

6. Check the status if Artifactory is working fine
sudo systemctl status artifactory.service

7. You can also check the logs

sudo tail -f /var/opt/jfrog/artifactory/log/artifactory-service.log


8. Now login with changed admin credentials


Watch steps in YouTube channel:

No comments:

Post a Comment

DevOps Interview Preparation Useful real time tips | Crack DevOps Interviews | How to clear DevOps Interviews

Are you failing in DevOps Interviews? Are you not be able to go to next round in the Interview process?  First of all you need to have clea...