GeoServer web administration

GeoServer on localhost:8080

A typical local deployment uses http://localhost:8080/geoserver. Port 8080 reaches the servlet container; /geoserver selects the deployed web application. Test both layers before changing security files.

GeoServer stable documentationJetty bundle · Tomcat deploymentUpdated September 5, 2026
Common URL:8080/geoserver
Admin userChange immediately
User storeusers.xml
Before file editsBack up data dir

Find the correct URL

curl -I http://127.0.0.1:8080/geoserver/

# If nothing responds, identify the 8080 listener
# Windows PowerShell
Get-NetTCPConnection -LocalPort 8080 -State Listen

# macOS or Linux
lsof -nP -iTCP:8080 -sTCP:LISTEN
ResultInterpretation
Tomcat page at /, 404 at /geoserverThe container is running, but GeoServer is not deployed under that context or failed during deployment.
GeoServer page at /geoserverNetwork, servlet container, and context path are working.
Connection refused everywhereNo process is accepting connections at 8080.
Another product’s pageA different process owns the port.

Change the initial admin password

GeoServer’s official quickstart documents initial admin / geoserver credentials for a new data directory and instructs administrators to change them. Treat those values only as bootstrap credentials for a fresh instance—not a universal recovery password.

  1. Sign in to the local web administration interface.
  2. Open Security → Users, Groups, and Roles.
  3. Select the admin user, set a unique password, and save.
  4. Also review Security → Passwords and the keystore-password warning.

Never leave initial credentials on a shared or remotely reachable instance. Restrict network access until the user and keystore passwords are changed.

Recover access without deleting security configuration

Current GeoServer documentation provides recovery options under Security → Passwords for the keystore password. If you still have another administrator account, use the supported user-management interface or authenticated REST endpoints to repair the affected account.

If all administrative access is lost:

  1. Stop GeoServer and take a complete, restorable backup of the data directory.
  2. Confirm the exact GeoServer version and active user/group service.
  3. Follow the recovery procedure for that version and service, or restore a known-good data-directory backup.
  4. Test recovery on a copy before touching the only working data directory.

Do not delete the security directory. It contains users, roles, services, keys, and other security state. Recreating it can remove access controls and is not a safe password-reset shortcut.

Locate the active data directory

The location depends on how GeoServer was installed and can be overridden. Use the server status page or startup log rather than guessing a home-directory path. In the default XML-backed user/group service, current GeoServer documentation places the user database at:

<data-directory>/security/usergroup/<service-name>/users.xml

Older articles that instruct you to edit users.properties may describe a different or obsolete security setup. Confirm your active version and service before editing files, and do not replace encrypted values with plain text.

Official references