Changing root password
Introduction
The Dédalo root user is the most powerful administrative account, granting complete and unrestricted access to all system data and functions. Reserve this account exclusively for critical operations like installation, system updates, maintenance procedures, and diagnostic debugging.
The root user password is established during the initial installation process and is generally intended to remain permanent. There are specific scenarios, however, that may necessitate a password change, for example, during server migration or when administrative duties are reassigned to a new administrator.
Procedure: Root Password Reset
For security reasons, the root user is not accessible via the Dédalo web interface. Modifying this account requires direct access to your Dédalo server and can only be performed manually by users with GNU/Linux system administration privileges.
Requirements
Secure Environment Required
Isolate Installation During Procedure. Before beginning this sensitive operation, ensure your Dédalo installation is not publicly accessible. This critical security procedure requires that you temporarily remove public access to Dédalo to prevent unauthorized access during the password change process.
- Server access using the GNU/Linux account created for Dédalo installation
- Privileged user access to the Dédalo PostgreSQL database
Steps
-
Update the Dédalo Installation Status
Navigate to the Dédalo configuration directory:
cd ./dedalo/config nano config_core.php
Locate the DEDALO_INSTALL_STATUS constant and modify its value from:
define('DEDALO_INSTALL_STATUS', 'installed');
to:
define('DEDALO_INSTALL_STATUS', false);
This change will reactivate installation mode for your Dédalo instance.
-
Remove the Existing Root Password in PostgreSQL
Execute the following SQL command to clear the root password:
UPDATE matrix_users SET datos = jsonb_set(datos, '{components, dd133, dato, lg-nolan}', 'null') WHERE section_id = -1;
-
Access Dédalo via Web Browser
Open your web browser and navigate to your Dédalo instance. Changing the installation status will trigger the installation process, and Dédalo will display the option to set a new root password.
Click the "To change root" button and follow the prompts to establish your new password.
Click the "Save the root password" button.
-
Restore the Dédalo Installation Status
Return to the configuration directory and open the core configuration file:
fromcd ./dedalo/config nano config_core.php
define('DEDALO_INSTALL_STATUS', false);
to:
define('DEDALO_INSTALL_STATUS', 'installed');
-
Access Dédalo via Web Browser and login as usually using the new password