Pawlik
Pawlik

Reputation: 21

How can I reset Artifactory admin password in version 5.x?

I cannot access to my Artifactory 5.x as admin user.

I was trying links from jfrog webpage: Recreating the default admin account, but this procedure is valid for older versions.

Does anyone know how to reset admin password in version 5.x (5.6)?

I have access to root account on artifactory server.

Additional question:

In my login form there is no Password Reminder link? Why ? Artifactory OSS version...

Upvotes: 2

Views: 3071

Answers (2)

demon101
demon101

Reputation: 564

For 6 versions you can recreate users by a file called bootstrap.creds under JFROG_HOME/artifactory/var/etc/access with permission 600

admin@*=password1

chmod 600 bootstrap.creds

And restart artifactory

https://www.jfrog.com/confluence/display/JFROG/Users+and+Groups

Upvotes: 1

vasquez
vasquez

Reputation: 581

Passwords are now stored in the database. In my case it was mysql. Here is how I did it:

  1. Connect to the database of artifactory using this command:

    mysql -u root -p artbase
    
  2. Show the user table with this SQL sentence:

    select * from access_users;
    
  3. Find an online bcrypt hasher and get a bcrypt hash of the password you want to set, I used bscrypt.

  4. Update the admin user with this SQL sentence:

    update access_users set password='bcrypt$put_the_hash_here' where username='admin';
    
  5. Login should work. Better change your admin password.

Upvotes: 3

Related Questions