Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Valid from 5.2

The documentation below is valid from Datafari v4.4.0 upwards

In this page we detail how to change the passwords that you defined in the installation script of Datafari.

...

Code Block
cd /opt/datafari/bin

bash stop-datafari.sh
  1. Edit the pwd.conf file into pgsql folder :

Code Block
nano /opt/datafari/pgsql/pwd.conf

And change for the password that you want.

  1. Change the password into the Postgresql database :

Code Block
export LD_LIBRARY_PATH=/opt/datafari/pgsql/lib
cd /opt/datafari/pgsql
bin/psql -U postgres

...

To quit the postgresql prompt enter :

Code Block
\q
  1. We need to have the password obfuscated for MCF so go to /opt/datafari/mcf/mcf_home/obfuscation-utility

Code Block
cd /opt/datafari/mcf/mcf_home/obfuscation-utility

...

There will be a line that appears. This string is the obfuscated password. Copy it.

  1. Edit the file  /opt/datafari/mcf/mcf_home/properties-global.xml and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/mcf/mcf_home/properties-global.xml 

Change the line <property name="org.apache.manifoldcf.dbsuperuserpassword.obfuscated" and replace the value with the obfuscated password

  1. Edit the file  /opt/datafari/tomcat/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

  1. Edit the file /root/.pgpass and change the password into the line :

Code Block
localhost:5432:*:postgres:$NEW_PASSWORD
  1. Start Datafari

Code Block
cd /opt/datafari/bin

bash start-datafari.sh

...

Expand
titleValid from 4.4 to 5.1
Info

Valid from 4.4 to 5.1

The documentation below is valid from Datafari v4.4.0 upwards

In this page we detail how to change the passwords that you defined in the installation script of Datafari.

A. Admin user into Datafari web application

Go to the Datafari admin page, then click into User Management → Modify Users

Image Modified

Then on the array, on the admin user line, click on the textbox with the label change the password and enter the password that you want. Validate with the Enter key on your keyboard.

Image Modified

B. MCF admin password

Go to the Datafari admin page, then click into Connectors → Change MCF password

Enter the new password in the two textboxes and confirm.

Image Modified

C. Change the Apache proxy passwords

Go to the Datafari admin UI, then click into Admin → User Management → Modify Apache Users.

Then click on the textbox for the password that you want to change. When you finish click on the Enter keystroke on your keyboard to validate the changes. Wait a little for the change be applied : Apache server needs to be restarted.

...

Image Added

D. Change the password for PostgreSQL

Info

Needs to directly modify different files with a SSH connection into the server

1.Stop datafari

Code Block
cd /opt/datafari/bin

bash stop-datafari.sh

2. Edit the pwd.conf file into pgsql folder :

Code Block
nano /opt/datafari/pgsql/pwd.conf

And change for the password that you want.

3. Change the password into the Postgresql database :

Code Block
export LD_LIBRARY_PATH=/opt/datafari/pgsql/lib
cd /opt/datafari/pgsql
bin/psql -U postgres

Enter your old password to login.

After that you have the postgresql prompt, enter this command :

Code Block
\password postgres

Then enter the new password and repeat it.

To quit the postgresql prompt enter :

Code Block
\q

4. We need to have the password obfuscated for MCF so go to /opt/datafari/mcf/mcf_home/obfuscation-utility

Code Block
cd /opt/datafari/mcf/mcf_home/obfuscation-utility

And launch the script and indicate your new password (replace $NEW_PASSWORD by the new password)

Code Block
bash obfuscate.sh $NEW_PASSWORD

There will be a line that appears. This string is the obfuscated password. Copy it.

5. Edit the file  /opt/datafari/mcf/mcf_home/properties-global.xml and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/mcf/mcf_home/properties-global.xml 

Change the line <property name="org.apache.manifoldcf.dbsuperuserpassword.obfuscated" and replace the value with the obfuscated password

6. Edit the file  /opt/datafari/tomcat/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

7. Edit the file /root/.pgpass and change the password into the line :

Code Block
localhost:5432:*:postgres:$NEW_PASSWORD

8. Start Datafari

Code Block
cd /opt/datafari/bin

bash start-datafari.sh

E. Change the Glances password

To do so, you need first tou delete the file that stores the hashed password located in /root/.config/glances/glances.pwd

Code Block
rm -rf /root/.config/glances/glances.pwd

Then stop Glances :

Code Block
service glances stop

Then we need to reinitialize the password :

Code Block
glances -w --password

Choose a new password at the prompt.

When it is done, press CTRL+C to stop Glances.

Then you can launch the service :

Code Block
service glances start

...

Expand
titleValid for 4.3
Info

Valid

...

for 4.3

The documentation below is valid from Datafari v4.3.0 upwards

In this page we detail how to change the passwords that you defined in the installation script of Datafari.

  • Admin user into Datafari web application

Go to the Datafari admin page, then click into User Management → Modify Users

Image Modified

Then on the array, on the admin user line, click on the textbox with the label change the password and enter the password that you want. Validate with the Enter key on your keyboard.

Image Modified
  • MCF admin password

Go to the Datafari admin page, then click into Connectors → Change MCF password

Enter the new password in the two textboxes and confirm.

Image Modified
  • Change the Apache proxy passwords

See this page : Password change in Apache proxy - Enterprise edition

  • Change the password for PostgreSQL

Info

Needs to directly modify different files with a SSH connection into the server

1.Stop datafari

Code Block
cd /opt/datafari/bin

bash stop-datafari.sh

2. Edit the pwd.conf file into pgsql folder :

Code Block
nano /opt/datafari/pgsql/pwd.conf

And change for the password that you want.

3. Change the password into the Postgresql database :

Code Block
export LD_LIBRARY_PATH=/opt/datafari/pgsql/lib
cd /opt/datafari/pgsql
bin/psql -U postgres

Enter your old password to login.

After that you have the postgresql prompt, enter this command :

Code Block
\password postgres

Then enter the new password and repeat it.

To quit the postgresql prompt enter :

Code Block
\q

4. We need to have the password obfuscated for MCF so go to /opt/datafari/mcf/mcf_home/obfuscation-utility

Code Block
cd /opt/datafari/mcf/mcf_home/obfuscation-utility

And launch the script and indicate your new password, for example if I want to choose datafari as password :

Code Block
bash obfuscate.sh datafari

There will be a line that appears. This string is the obfuscated password. Copy it.

5. Edit the file  /opt/datafari/mcf/mcf_home/properties-global.xml and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/mcf/mcf_home/properties-global.xml 

Change the line <property name="org.apache.manifoldcf.dbsuperuserpassword.obfuscated" and replace the value with the obfuscated password

6. Edit the file  /opt/datafari/tomcat/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

7. Edit the file  /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

8. Start Datafari

Code Block
cd /opt/datafari/bin

bash start-datafari.sh

...

Expand
titleValid for 4.2
Info

Valid

from

for 4.2

The documentation below is valid from Datafari v4.2.0 upwards

In this page we detail how to change the passwords that you defined in the installation script of Datafari.

  • Admin user into Datafari web application

Go to the Datafari admin page, then click into User Management → Modify Users

Image Modified

Then on the array, on the admin user line, click on the textbox with the label change the password and enter the password that you want. Validate with the Enter key on your keyboard.

Image Modified
  • MCF admin password

Go to the Datafari admin page, then click into Connectors → Change MCF password

Enter the new password in the two textboxes and confirm.

Image Modified
  • Change the password for PostgreSQL

Info

Needs to directly modify different files with a SSH connection into the server

1.Stop datafari

Code Block
cd /opt/datafari/bin

bash stop-datafari.sh

2. Edit the pwd.conf file into pgsql folder :

Code Block
nano /opt/datafari/pgsql/pwd.conf

And change for the password that you want.

3. Change the password into the Postgresql database :

Code Block
export LD_LIBRARY_PATH=/opt/datafari/pgsql/lib
cd /opt/datafari/pgsql
bin/psql -U postgres

Enter your old password to login.

After that you have the postgresql prompt, enter this command :

Code Block
\password postgres

Then enter the new password and repeat it.

To quit the postgresql prompt enter :

Code Block
\q

4. We need to have the password obfuscated for MCF so go to /opt/datafari/mcf/mcf_home/obfuscation-utility

Code Block
cd /opt/datafari/mcf/mcf_home/obfuscation-utility

And launch the script and indicate your new password, for example if I want to choose datafari as password :

Code Block
bash obfuscate.sh datafari

There will be a line that appears. This string is the obfuscated password. Copy it.

5. Edit the file  /opt/datafari/mcf/mcf_home/properties-global.xml and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/mcf/mcf_home/properties-global.xml 

Change the line <property name="org.apache.manifoldcf.dbsuperuserpassword.obfuscated" and replace the value with the obfuscated password

6. Edit the file  /opt/datafari/tomcat/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

7. Edit the file  /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties and replace the postgresql password with the obfuscated password :

Code Block
nano /opt/datafari/tomcat-mcf/conf/mcf-postgres.properties

Change the line PASSWORD= and replace the value with the obfuscated password

8. Start Datafari

Code Block
cd /opt/datafari/bin

bash start-datafari.sh