11-10-2014 11:06 PM
Hi,
I am playing with users and groups. Using Studio I deleted the Administrators group. I assigned another group to the user Administrator. I deployed, it looked ok.
Today, I restart my server and the admin user cannot see the "ADMIN" tab in the header anymore. As a result, I can't access any Admin actions. I can't pull the latest config from studio. I am stuck 😕
Any idea why this happen? Shouldn't "Administrator" be protected from loosing all rights? At least one privilege user must always remain. How I could fix it?
Thank you
Nicolas
11-11-2014 02:59 PM
hello,
add a file named emergency-config.xml under $NUXEO/nxserver/config with this content
<?xml version="1.0"?>
<component name="emergency.users">
<extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager">
<userManager>
<users>
<virtualUser id="MyAdministrator" searchable="false">
<password>secret</password>
<property name="firstName">My</property>
<property name="lastName">Admin</property>
<group>administrators</group>
</virtualUser>
</users>
</userManager>
</extension>
</component>
And you'll be able to log in with MyAdministrator/secret
Kind regards,
Thierry
11-11-2014 02:59 PM
hello,
add a file named emergency-config.xml under $NUXEO/nxserver/config with this content
<?xml version="1.0"?>
<component name="emergency.users">
<extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager">
<userManager>
<users>
<virtualUser id="MyAdministrator" searchable="false">
<password>secret</password>
<property name="firstName">My</property>
<property name="lastName">Admin</property>
<group>administrators</group>
</virtualUser>
</users>
</userManager>
</extension>
</component>
And you'll be able to log in with MyAdministrator/secret
Kind regards,
Thierry
11-11-2014 10:29 PM
thanks it works!
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.