Set passwords and store them in the configuration file