欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Linux中使用userdel命令删除用户时出现错误 “userdel: user XXX is currently used by process XXX”*

程序员文章站 2022-07-14 20:05:43
...

Linux中使用userdel命令删除用户时出现错误

“userdel: user XXX is currently used by process XXX”


[[email protected] ~]# userdel wqd
userdel: user wqdis currently used by process 10479

删除不成功

**出现原因:**是使用了su频繁转换用户

解决:直接退出后重新登录root,然后userdel -r 用户名;

或者Ctr+d退回到初始用户再使用userdel;

[[email protected] ~]# userdel -r wqd
[[email protected] ~]# su - wqd
su: user wqd does not exist
[[email protected] ~]# 

删除成功