V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lbwleon
V2EX  ›  程序员

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

  •  1
     
  •   lbwleon · 2017-01-23 16:48:21 +08:00 · 2733 次点击
    这是一个创建于 2662 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [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
    10 条回复    2017-01-24 06:17:16 +08:00
    Havee
        1
    Havee  
       2017-01-23 17:20:45 +08:00
    没救了

    为什么将 tomcat 用户的家目录设置为根目录?
    Sentur
        2
    Sentur  
       2017-01-23 17:25:22 +08:00
    ??!?为什么要加-rf
    SoloCompany
        3
    SoloCompany  
       2017-01-23 18:27:41 +08:00   ❤️ 2
    这姿势够特别啊
    cncqw
        4
    cncqw  
       2017-01-23 20:35:18 +08:00
    @Sentur 怕删的不够彻底
    Sentur
        5
    Sentur  
       2017-01-23 20:45:15 +08:00
    @cncqw 滑稽
    ryd994
        6
    ryd994  
       2017-01-23 21:02:05 +08:00
    这让我想起了 steam 和 bumblebee
    justyy
        7
    justyy  
       2017-01-23 22:59:32 +08:00
    为什么 userdel -rf tomcat 会 removing directory / ????
    Systemd
        8
    Systemd  
       2017-01-23 23:02:31 +08:00 via Android
    我觉得你已经 rm -rf / 了……
    你之前执行了什么呢?
    macroideal
        9
    macroideal  
       2017-01-24 00:55:22 +08:00 via iPhone
    牛逼
    jyf007
        10
    jyf007  
       2017-01-24 06:17:16 +08:00 via Android
    保持连接,先放上 busybox 和 dropbear 救场吧(滑稽
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5234 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:57 · PVG 17:57 · LAX 02:57 · JFK 05:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.