Saturday, 28 July 2018

Alfresco: Reset the administrator password



Reset the admin password: In the default alfresco installation, the authentication mechanism users and passwords are stored locally in the Alfresco PostgreSQL database.

SOLUTION: if you know the credentials of at least one normal. For example user is : user1

ALF_HOME:- Alfresco installation directory (Default directory is: /opt/alfresco-5.0)

Step 1: open alfresco global configuration file and add/modify the below line:

[root@linuxcnf ~]# vi $ALF_HOME/tomcat/shared/classes/alfresco-global.properties
# Add/modify this line
alfresco_user_store.adminusername=user1
[root@linuxcnf ~]#

Step 2: Restart Alfresco service to effect the changes on configuration file:

[root@linuxcnf ~]#service alfresco restart

Step 3: Now login as this user using any browser by alfresco url and now you have administrative privileges so update the admin user password.

Step 4: Revert the configuration as below. Open alfresco global configuration file and remove the below line:

[root@linuxcnf ~]# vi $ALF_HOME/tomcat/shared/classes/alfresco-global.properties
# Remove this line
alfresco_user_store.adminusername=user1
[root@linuxcnf ~]#

Step 5: Restart Alfresco service to effect the changes on configuration file:

[root@linuxcnf ~]#service alfresco restart

Now you can able to login with admin user!!!

No comments:

Post a Comment