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

2017-01-23 16:48:21 +08:00
 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
2749 次点击
所在节点    程序员
10 条回复
Havee
2017-01-23 17:20:45 +08:00
没救了

为什么将 tomcat 用户的家目录设置为根目录?
Sentur
2017-01-23 17:25:22 +08:00
??!?为什么要加-rf
SoloCompany
2017-01-23 18:27:41 +08:00
这姿势够特别啊
cncqw
2017-01-23 20:35:18 +08:00
@Sentur 怕删的不够彻底
Sentur
2017-01-23 20:45:15 +08:00
@cncqw 滑稽
ryd994
2017-01-23 21:02:05 +08:00
这让我想起了 steam 和 bumblebee
justyy
2017-01-23 22:59:32 +08:00
为什么 userdel -rf tomcat 会 removing directory / ????
Systemd
2017-01-23 23:02:31 +08:00
我觉得你已经 rm -rf / 了……
你之前执行了什么呢?
macroideal
2017-01-24 00:55:22 +08:00
牛逼
jyf007
2017-01-24 06:17:16 +08:00
保持连接,先放上 busybox 和 dropbear 救场吧(滑稽

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

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

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

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

© 2021 V2EX