Diego,

if you want to change the admin password by modifying a local file, you 
can store the password in plain text:
http://docs.geoserver.org/latest/en/user/security/passwd.html#plain-text

For example, if you want the "admin" user to have password "s3cr3t", you 
can modify data/security/usergroup/default/users.xml to include:

<user enabled="true" name="admin" password="plain:s3cr3t"/>

This is insecure as it exposes the admin password to all local users 
with read access, but it may be suitable for automated deployments on 
virtualised or containerised platforms.

For general use, changing the admin password using the web interface is 
preferred. You can create a digest1 password on one deployment and then 
copy this to other deployments.

In each case you will need to reload settings or restart geoserver for 
the change to take effect.

Kind regards,
Ben.

On 03/09/14 17:55, Diego M. wrote:
> Hello there,
>
> My GeoServer is running in Web Archive mode inside of Tomcat (on Linuc
> Machine).
> I'm trying to change the login password. I found the the encrypted password
> here:
>
> /var/lib/tomcat7/webapps/geoserver/data/security/usergroup/default/users.xml
>
> But I don't know how to encrypt the new password to replace it.
>
> and here:
>   /var/lib/tomcat7/webapps/geoserver/data/security/config.xml
>
> there is my current passwor (geoserver)
>    <rememberMeService>
>
> <className>org.geoserver.security.rememberme.GeoServerTokenBasedRememberMeServices</className>
>      <key>geoserver</key>
>    </rememberMeService>
>
> I tried to change it but that didn't work.
>
>
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Change-Web-Interface-Password-tp5159849.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to