user XXX is currently used by process
来源:互联网 发布:淘宝助理发布宝贝教程 编辑:程序博客网 时间:2024/05/22 15:28
root@ www.linuxidc.com :/home/crper# userdel -r test1
userdel: user test1 is currently used by process 1
root@ www.linuxidc.com :/home/crper# groupdel work1
groupdel:不能移除用户“test1”的主组
删除该用户就提醒用户当前在进程运行。。。删除他的组也报错
解决方法:
纠结了许久,忽然想起了以前在一本看到过一个vipw的命令,,于是。。找man。。。。开始干活了。。
root@ www.linuxidc.com :/home# vipw
找到你之前创建的用户,用dd删除那行(记得保存:wq or :x)。。之后。
root@ www.linuxidc.com :/home# vipw -s
找到那个用户所属组,也dd干掉即可(记得保存:wq or :x)
为什么要vipw -s呢?原因只有一个,必须保证数据的一致性,不然可能会造成系统崩溃或者一些莫名其妙的问题
命令小解:
root@ www.linuxidc.com :/home# vipw –help
用法:vipw [选项]
选项:
-g, –group 编辑 group 数据库
-h, –help 显示此帮助信息并推出
-p, –passwd 编辑 passwd 数据库
-q, –quiet 安静模式
-R, –root CHROOT_DIR chroot 到的目录
-s, –shadow 编辑 shadow 或 gshadow 数据库
二.查看当前系统登录用户:W
先用“who”命令查询当前登录的用户
然后用“ps -u 用户名”命令查看该用户的pid
再使用“kill pid”命令,杀掉他的sshd或者是shell进程
- user XXX is currently used by process
- userdel: user * is currently used by process 1278
- linux删除普通用户报错 userdel: user fancy is currently used by process 1973
- centos userdel删除用户时候提示userdel: user *** is currently used by process 20879
- linux删除普通用户报错 userdel: user fancy is currently used by process 1973
- linux userdel 删除用户遇到 userdel: user test1 is currently used by process 7585 无法删除的问题
- The process cannot access the file XXX because it is being used by another process
- 拷贝文件时出现The process cannot access the file 'xxx' because it is being used by another process.错误
- 解决VTune错误PMU resources currently being used by another profiling tool or process
- the user data image is used by another emulator. aborting
- IIS:The process cannot access the file because it is being used by another process.
- FileStream:The process cannot access the file because it is being used by another process
- The process cannot access the file because it is being used by another process.
- Solution: The process cannot access the file [filename] because it is being used by another process.
- the process cannot access the file because it is being used by another process
- Class "xxx" is never used
- error while unload assembly from GAC "assembly is being used by another process"
- 文件流操作,报“because it is being used by another process. ”错误解决
- echarts2添加点击事件+条形图单条背景
- sqrt(a) 返回值为0的问题
- 前台提示框是否删除
- 二叉树序列化
- 【面经】2016年【阿里实习内推电面】
- user XXX is currently used by process
- Android开发相关软件
- 小白从linux到放弃第一篇
- C++11之模板别名&函数模板的默认模板参数
- 关于PAZU打印控件js调用无法网页打印的解决办法
- unity 绘制多边形
- Elasticsearch+Hbase实现海量数据秒回查询
- Struts2中Get请求转码问题
- 在静态库中使用MFC