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

  1. Navigate to Security > Groups, users, roles.

    User, groups and roles link

    User, group and roles page

  1. In the page that will appear, move to the Users/Groups section.

    User, groups and roles page

    You will see the following content.

    Users/Groups content
  1. Click on the admin username to edit its properties. The following page will open.

    `admin` user configuration page
  2. Type in the new password to use for the admin user.

  3. 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:

  1. Locate the file /data/security/usergroup/default/users.xml.

  2. 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"/>
    
  3. Use this temporary password to login, and immediately change the password.

    The new password will be stored respecting password policy in encrypted/digest form.