Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Forked from gmhawash/gist:4043232
Last active August 29, 2015 14:20
Show Gist options
  • Save murarisumit/272be7ccc44f59eff21c to your computer and use it in GitHub Desktop.
Save murarisumit/272be7ccc44f59eff21c to your computer and use it in GitHub Desktop.
Reset password for jenkins
0. SSH to server
1. Edit jenkins_home/config.xml
2. set userSecurity to false: <userSecurity>false</userSecurity>
3. delete
<authorizationStrategy> and <securityRealm>
4. /etc/init.d/bitnami restart
Now Jenkins should be open:
5. Select Configure Jenkins,
"Enable Security",
"Use Jenkin's own database"
"Allow users to sign up"
6. Under Authorization, select: "Matrix-based security"
and add users and give them all permissions,
and remove all permissions from 'anonymous'
=======================================================
To Reset individual password:
1. Go to jenkins_home/users/gmhawash
2. Edit config.xml file
3. Remove the passwordHash tag (you can now log in without password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment