diff --git a/LCS/PyCommon/dbcredentials.py b/LCS/PyCommon/dbcredentials.py
index 8da2664132b8efcb5e33254575719a508ac5ee2c..de825bd249b4babc70b48f2d678636480b872348 100644
--- a/LCS/PyCommon/dbcredentials.py
+++ b/LCS/PyCommon/dbcredentials.py
@@ -189,10 +189,11 @@ class DBCredentials:
       new_path = os.path.join(user_info.pw_dir, '.lofar', 'dbcredentials', database+extension)
       if not os.path.exists(os.path.dirname(new_path)):
         os.makedirs(os.path.dirname(new_path))
-      with open(new_path, 'w') as new_file:
+      with open(new_path, 'w+') as new_file:
         new_file.write("[database:%s]\nhost=localhost\nuser=%s\npassword=unknown\ntype=unknown\nport=0\ndatabase=%s"
                        % (database,user_info.pw_name,database))
-      logger.info("created default dbcredentials file for database=%s at %s", database, new_path)
+      logger.info("Created default dbcredentials file for database=%s at %s", database, new_path)
+      logger.warning(" *** Please fill in the proper credentials for database=%s in new empty credentials file: '%s' ***", database, new_path)
 
   def get(self, database):
     """