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] ~]#
删除成功
上一篇: Linux使用useradd命令添加用户时修改的文件
下一篇: Python第二章作业