Skip to content

Instantly share code, notes, and snippets.

@shahabedinh
Created April 1, 2020 16:53
Show Gist options
  • Save shahabedinh/4c28ab643db22f7560e7c00974752e45 to your computer and use it in GitHub Desktop.
Save shahabedinh/4c28ab643db22f7560e7c00974752e45 to your computer and use it in GitHub Desktop.
Reset bitnami Jenkins Password
#!/bin/bash
## SSH to server
# go to Jenkins home
cd /opt/bitnami/jenkins/jenkins_home
## Edit config.xml
### Set disableSignup to false: <disableSignup>false</disableSignup>
sudo sed -ic 's/\<disableSignup\>true\<\/disableSignup\>/\<disableSignup\>false\<\/disableSignup\>/' config.xml
## Restart the jenkins service
sudo /opt/bitnami/ctlscript.sh restart
## Sign up via the web interface
## Copy the user permissions for the default user and assign these to the newly signed up user
## Set disableSignup to true
sudo sed -ic 's/\<disableSignup\>false\<\/disableSignup\>/\<disableSignup\>true\<\/disableSignup\>/' config.xml
## Restart the jenkins service
sudo /opt/bitnami/ctlscript.sh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment