How Do I Unlock Jenkins Via CLI

Greetings,

I’m functioning in a sysadmin role working to install Jenkins in a Ubuntu 22.04.1 LTS multi-user environment as documented here:

Is there a way to unlock Jenkins via command line and/or editing configuration files without using a web browser?

Appreciatively,

-RH

The unlock ui is shown(ish/essentially) when there’s no users, and the auth scheme requires logins.

I would recommend looking at Configuration as Code which will allow you to setup jenkins without touching the UI. if you are using the built in user system, you can even create and manage users via it.

1 Like