一天,我在刪除用戶時,突然報了錯.
[root@izdai3e433t8fg0cmoz root]# userdel -r test
userdel: user test is currently used by process 8870
image
看到他人的博客,才想到原因可能是root用戶su
到test用戶又su
回來導致的.
這種情況直接多次執(zhí)行logout
命令就好
當再次執(zhí)行su
時,就發(fā)現用戶已經被刪除掉了.
image
但是又發(fā)現test用戶的進程還在執(zhí)行.用kill pid
殺不死.那就用kill -9 pid
image