Admin password setup
GeoServer has a predefined admin
user, which has been granted the ADMIN
role to access GeoServer with full administration priviledges.
Required:
Reference:
Change admin password
Navigate to
.User, group and roles page
In the page that will appear, move to the Users/Groups section.
You will see the following content.
Click on the admin username to edit its properties. The following page will open.
Type in the new password to use for the admin user.
Click on Save to save your changes.
Recover from lost admin password
To recover from lost admin password disk access to GEOSERVER_DATA_DIR is required:
Locate the file
/data/security/usergroup/default/users.xml
.Temporarily change the password from encrypted/digest to new plaintext password:
<user enabled="true" name="admin" password="digest1:D9miJH/hVgfxZJscMafEtbt...JOSV4POi55PQI4tw"/>
To plaintext:
<user enabled="true" name="admin" password="plain:new-password-here"/>
Use this temporary password to login, and immediately change the password.
The new password will be stored respecting password policy in encrypted/digest form.