centos 7 执行userdel命令提示user wuweib is currently used by process 10388
root权限删除用户(userdel -r wuweib)时提示:
user wuweib is currently used by process 10388(提示被进程10388占用),
我的想法是杀死进程不就行了吗,故:执行kill -9 10388(杀死进程10388),后来出问题了(没截图),就是无法输入命令,最后一步一步退出了登录(每按一个字母就退出一步),重新登录,再次执行userdel,提示user wuweib is currently used by process 1761(进程1761占用),然后看了一下网上的解决方法:
Ctrl+D退出已登录用户,重新登录root再执行userdel命令即可