diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 7221e680..9bd4c9e8 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -145,7 +145,7 @@ def tools_adminpw(auth, new_password): with open('/etc/shadow', 'w') as after_file: after_file.write(before.replace("root:" + hash_root, - "root:" + new_hash)) + "root:" + new_hash.replace('{CRYPT}', ''))) except IOError as e: logger.warning(m18n.n('root_password_desynchronized')) return