Master password¶
GeoServer uses a master password used to safely store security certificates. This password can optionally be used to login as the root user.
Recommendations:
When upgrading you may receive a warning to change the master password from a historical default.
When integrating with an external security system such as a LDAP it is recommended to enable root user login using the master password.
When setting up GeoServer for the first time removing the generated
masterpw.info
file is recommended to avoid security issues.
Remove master password has not been changed from the default warning¶
When upgrading an early GEOSERVER_DATA_DIRECTORY setup you will be asked replace the default master password.
The master password for this server has not been changed from the default. It is highly recommended that you change it now.
Click Change it link to open the Change Master Password page.
Change master password warning¶
Change the master password using:
Current password
geoserver
New Password
New password definition. Master password policy requires at least eight characters.
Confirmation
Retype your new password
Change master password¶
Press Change Password to set the new master password.
Remove masterpw.info warning¶
When the GEOSERVER_DATA_DIR/security folder is created a masterpw.info
is created for your referemce.
To remove the masterpw.info
file:
The
page displays the following warning to administrators:Please read the file security/masterpw.info and remove it afterwards. This file is a security risk.
masterpw.info warning¶
Navigate to Resource browser.
page, and openTools page¶
Select
security/master.pw.info
and Edit to view the contents of the file.Make a note of this password for your records.
The contents are generated when the
security
folder is created, so your password will be different from the one shown below.Edit master.pw.info file¶
Select
security/master.pw.info
and Delete to remove the file and address the warning on the welcome screen.Delete master.pw.info file¶
Recover master password¶
The master password can be written out to the filesystem:
Navigate to
page.Click Master password forgotten link to open the Dump master password page.
Password page¶
Use the Dump master password page to define a file location to export the master password:
Filename:
/usr/local/geoserver-live/data/master.txt
Location to export master password¶
Press Dump to file to write the file out.
Master passport export¶
Use the
to select themaster.txt
created above:Use Edit to review the contents of the file and make a note of the master password.
Use Delete to remove this file when finished
Review and delete exported file¶
Change master password¶
To change the master password, follow these steps:
Navigate to
page.Click the Change password link.
Password page¶
Change the master password using:
Current password
Current master password recorded from
master.pw.info
or recovered to an exported file.New Password
New password definition. Master password policy requires at least eight characters.
Confirmation
Retype your new password
Change master password¶
Press Change Password to set the new master password.
Enable root user login¶
To enable root user login:
Navigate to
page.Locate the Master Password Providers table and select default from the list.
Master password providers¶
Update the settings:
Allow “root” user to login as Admin
Selected
Master password settings¶
Press Save
Press Logout button at the top of the screen, and use your paster password to login as root.
User name
root
Password
Current master password recorded from
master.pw.info
or recovered to an exported file.Login as root user¶