How to reset the initialing passwords of DevOps tools (Jenkins, Rancher, Nexus, etc.)

The admin password of our DevOps tools (for example Jenkins, Rancher, etc.) was unlocked or we forgot its admin password. How to set or…