Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

How to remove default administrator user gsadmin?

I want to setup a new administrator user and remove the gsadmin user from my GigaSpaces installation.

I tried the following steps, but I cannot permanently remove the gsadmin user:

Started up the GSM and two GSC. I started up the GS UI Management Center. On each container and the GSM using the 'Manage Users' dialog, I added a new user 'comfinadmin' and gave that user 'Admin' permission. I ran 'gs.bat admin userAdmin default' to assign 'comfinadmin' as the administrator user. Next using the 'Manage Users' dialog, I deleted the 'gsadmin' user from the list for each container and gsm. I clicked 'Exit' from the Management center. I reopened the Management Center and verified that I must login as 'comfinadmin' to access the container/GSM. I clicked 'Exit' from the Management center again. I closed all the GSC and GSM processes. I restarted the GSM and GSC and the UI Management Center. In the Management Center, I am able to login as 'gsadmin' and access the container. The 'gsadmin' user is listed on the 'Manage Users' dialog again even though I deleted it before.

I must be missing a step. How do I remove the 'gsadmin' user?

Thanks, Jackie

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2706]{quote}

asked 2008-11-13 09:59:49 -0500

jbilder's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

After using the
gs admin userAdmin default
do you see :

This is the file the space container should be able to read to have the new space container admin/pass.
Make sure the spaces starting using this file when started.
Once this will be used you will be able to access the users list using this new admin name/pass

answered 2008-11-13 13:38:05 -0500

shay hassidim's avatar
edit flag offensive delete link more



Thank you for your response.

The file default-container-schema.xml did get created in the config/schemas directory. The file has these two lines in it with my admin user id: <admin-password>qP9y9qopW9XGq76eYmJ0LA==</admin-password> <admin-name>comfinadmin</admin-name>

How do I verify that this file is used at startup? Is there a property I need to set?

Thanks, Jackie

jbilder's avatar jbilder  ( 2008-11-14 08:06:47 -0500 )edit

If you are using the scripts comes with the product (GSC , gsInstance) these will make sure this file will be picked up. If you are not using these you should make sure the parent config folder will be part of JVM CLASSPATH starting the space.

Once you click the users icon - can you access the users list via gsadmin or via your new user/pass?


shay hassidim's avatar shay hassidim  ( 2008-11-14 08:19:14 -0500 )edit

I am able to use the Manage Users dialog with both logins.

I start the GSM with this command:
@call "%JSHOMEDIR%\bin\gs.bat" start startLH startGSM

I start the GSC with this command:
start %JSHOMEDIR%\bin\gsc.bat

Where %JSHOMEDIR$ is the install directory for GigaSpaces 6.6.1.

I will try explicitly putting the file in the classpath.


jbilder's avatar jbilder  ( 2008-11-14 09:29:48 -0500 )edit


I added the parent config directory to my classpath and also the GigaSpaces install directory is in the classpath. I started the GSM and GSCs but was still able to log in with both gsadmin and comfinadmin.

So I set my variables in my environment and called gsm.bat and gsc.bat directly. It still allows me to login as both gsadmin and comfinadmin.

I changed the gsadmin user password. When I close my GSM/GSC and restart, the new gsadmin password is required.

I would welcome any other suggestions that you have. Otherwise, I will have to resort to just changing the gsadmin password to secure my space.

Thanks, Jackie

jbilder's avatar jbilder  ( 2008-11-14 13:03:13 -0500 )edit

The following works in version 6.0.5 with Processing Units. In pu.xml: <bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean">   . . .
  <property name="properties">     <props>       . . .       <prop key="com.j_spaces.core.container.admin-name">comfinadmin</prop>       <prop key="com.j_spaces.core.container.admin-password">qP9y9qopW9XGq76eYmJ0LA==</prop>     </props>   </property> </bean>

I plugged in the admin name and hashed password from one of the posts above.

Notice that the XML snippet above uses plain XML definitions due to some issues in v6.0.5 with OpenSpaces namespaces and PropertyPlaceholderConfigurer (a PropertyPlaceholderConfigurer can be used to provide the admin name and hashed password from somewhere else).

You could also try using -D JVM arguments, if that's allowed in your Production environment: -Dcom.j_spaces.core.container.admin-name=comfinadmin -Dcom.j_spaces.core.container.admin-password=qP9y9qopW9XGq76eYmJ0LA==

HTH -- Vanio

vanio's avatar vanio  ( 2008-11-19 13:58:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2008-11-13 09:59:49 -0500

Seen: 131 times

Last updated: Nov 13 '08