Changing permissions on config file as it may contain the password.