From e199b03d7d2165af814be1df5b0594efbd625d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 11 Jan 2019 17:22:03 +0100 Subject: [PATCH] Use nscd command to invalide group informations --- src/yunohost/permission.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/permission.py b/src/yunohost/permission.py index 77f9adbfe..4be463e50 100644 --- a/src/yunohost/permission.py +++ b/src/yunohost/permission.py @@ -507,4 +507,5 @@ def permission_sync_to_user(auth, force=False): app_ssowatconf(auth) # Reload unscd because if not the group is not updated in the system from LDAP - os.system('systemctl restart unscd') + os.system('nscd --invalidate=passwd') + os.system('nscd --invalidate=group')