5/9/2021 0 Comments Jenkins Reset Admin Password
When working with Jenkins, there might be scenarios where you forgot the admin password.There are few ways of recovering the forgotten admin password, they are.Personally I dont prefer this method, but this is widely used by most of the admins.
![]() In this method, we disable the security of Jenkins and users will be able to login to the Jenkins UI without password. This method is bit risky as anyone can login for the time till you security is turned on again. This method is preferred when securityauthentication is accidently done in way that no one is allowed to login to the Jenkins. Then login to the Jenkins UI and setup the admin user with new password and re-enable the security. This is the preffered method, in this method security will be still enabled. Admin can updated the new generated Java BCrypt hashed password in the config file of the user. After this login to Jenkins with newly setted admin password. As best practice always keep your password regularly changed. Please Note: The new hashed password is generated using Bcrypt. Jenkins Reset Admin Install Bcrypt OnYou can locally install Bcrypt on your Linux machine or use online portal for temporarily to generate the hashed password. Admin can updated the u003cspan classhljs-keywordu003enewu003cspanu003e generated Java BCrypt hashed password u003cspan classhljs-keywordu003einu003cspanu003e the config file u003cspan classhljs-keywordu003eofu003cspanu003e the user.nnSteps:nu003cspan classhljs-commentu003e cd varlibjenkinsusersadminu003cspanu003enu003cspan classhljs-commentu003e vim config.xmlu003cspanu003enn u003cspan classhljs-commentu003ejbcrypt:2a06RMFkWM4hdKdoTPumXD6Se85YFTqnCWOZKWTlMfEornCHxwx.KuqO u003cspanu003en ton u003cspan classhljs-commentu003ejbcrypt2a062vDn.VKQAt57pZoNdlHm3ears6omX4CMUq7z4AWCoB.XwVMEztaoG u003cspanu003ennu003cspan classhljs-commentu003e systemctl restart jenkinsu003cspanu003ennAfter u003cspan classhljs-keywordu003ethisu003cspanu003e login to Jenkins with newly setted admin password. As best practice always keep your password regularly changed.nnPlease Note: The u003cspan classhljs-keywordu003enewu003cspanu003e hashed password u003cspan classhljs-keywordu003eisu003cspanu003e generated using Bcrypt. Password u003cspan classhljs-keywordu003einu003cspanu003e the aforementioned example u003cspan classhljs-keywordu003eisu003cspanu003e Testu003cspan classhljs-numberu003e123u003cspanu003ennYou can locally install Bcrypt u003cspan classhljs-literalu003eonu003cspanu003e your Linux machine u003cspan classhljs-keywordu003eoru003cspanu003e use online portal u003cspan classhljs-keywordu003eforu003cspanu003e temporarily to generate the hashed password. ActivityCounts:numLikes:32,numComments:7,numShares:0,threadHasAction:false,title:DevOps Jenkins CI CD How to reset Admin Password,ugcPost:comments:null,ugcUrn:null,publishDate:null,shareText:entityUrl:null,value:,comments:null--.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |