请问 userdel -rf tomcat 之后还有救吗?

2017 年 1 月 23 日
 lbwleon
[root@xxx apache-tomcat-8.5.11]# userdel -rf tomcat
userdel: error removing directory /
[root@xxx apache-tomcat-8.5.11]# ls /
-bash: /bin/ls: No such file or directory
3182 次点击
所在节点    程序员
10 条回复
Busy
2017 年 1 月 23 日
没救了

为什么将 tomcat 用户的家目录设置为根目录?
Sentur
2017 年 1 月 23 日
??!?为什么要加-rf
SoloCompany
2017 年 1 月 23 日
这姿势够特别啊
cncqw
2017 年 1 月 23 日
@Sentur 怕删的不够彻底
Sentur
2017 年 1 月 23 日
@cncqw 滑稽
ryd994
2017 年 1 月 23 日
这让我想起了 steam 和 bumblebee
justyy
2017 年 1 月 23 日
为什么 userdel -rf tomcat 会 removing directory / ????
Systemd
2017 年 1 月 23 日
我觉得你已经 rm -rf / 了……
你之前执行了什么呢?
macroideal
2017 年 1 月 24 日
牛逼
jyf007
2017 年 1 月 24 日
保持连接,先放上 busybox 和 dropbear 救场吧(滑稽

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/336465

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX