Debian删除用户

Debian删除其他用户

deluser 你要删除的用户名

如果提示userdel: user db2inst1 is currently logged in 或者

Removing user `xxxx' ...
Warning: group `xxxx' has no more members.
userdel: user xxxx is currently used by process 21355
/usr/sbin/deluser: `/sbin/userdel debian' returned error code 8. Exiting.

我们需要杀掉你需要删除用户的进程

pkill -u 用户名

再重复第一步的操作即可