Reputation: 21
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
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
Reputation: 581
Passwords are now stored in the database. In my case it was mysql. Here is how I did it:
Connect to the database of artifactory using this command:
mysql -u root -p artbase
Show the user table with this SQL sentence:
select * from access_users;
Find an online bcrypt hasher and get a bcrypt hash of the password you want to set, I used bscrypt.
Update the admin user with this SQL sentence:
update access_users set password='bcrypt$put_the_hash_here' where username='admin';
Login should work. Better change your admin password.
Upvotes: 3