sudo vi /var/lib/jenkins/config.xml
<useSecurity>true</useSecurity>
#modify to
<useSecurity>false</useSecurity>
sudo systemctl restart jenkins
Navigate to the web console
Notice that you were not prompted for a username or password
do the following.
Click on People on the left-hand navigation menu.
Click on the Admin
Delete the user account
Navigate to Manage Jenkins
Click on Configure Global Security
Under Security Realm, select Jenkins’ own user database
In the Authorization section, select Logged-in users can do anything
Unselect Allow anonymous read access
Save changes
It will redirect to a page where a new Admin user can be created
#try by specifying the right path
http://localhost:8080/securityRealm/firstUser
#not working? repeat the above steps after the following
sudo mv /var/lib/jenkins/users/* /tmp/jenkins
Ref: - serverlab.ca
No comments:
Post a Comment