From fbc3078c07d277ca30d24bf2f51544f588e10040 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 24 Mar 2016 18:04:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(userdel)=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4=E5=9C=A8=E7=BA=BF=E7=94=A8=E6=88=B7?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当用户已经登录到jumpserver时,web上删除用户时失败,也没有提示 修改方法: userdel -r -f 强制删除 close #156 --- juser/user_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juser/user_api.py b/juser/user_api.py index 335dd2d96..020a009fd 100644 --- a/juser/user_api.py +++ b/juser/user_api.py @@ -180,7 +180,7 @@ def server_del_user(username): delete a user from jumpserver linux system 删除系统上的某用户 """ - bash('userdel -r %s' % username) + bash('userdel -r -f %s' % username) def get_display_msg(user, password='', ssh_key_pwd='', send_mail_need=False):