Merge pull request #157 from jumpserver/force_del_user

fix(userdel) 修复无法删除在线用户bug
pull/164/head
ibuler 2016-03-24 18:07:28 +08:00
commit ae58fd548f
1 changed files with 1 additions and 1 deletions

View File

@ -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):