V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
laomo
V2EX  ›  问与答

树莓派卸载 zsh 后导致不能登录,有什么办法吗

  •  
  •   laomo · 2017 年 5 月 4 日 · 2327 次点击
    这是一个创建于 3176 天前的主题,其中的信息可能已经有所发展或是发生改变。
    cannot execute /usr/bin/zsh:No such file or directory
    4 条回复    2017-05-05 12:02:56 +08:00
    mdzz
        1
    mdzz  
       2017 年 5 月 4 日   ❤️ 1
    TF 卡拔下来改 login shell
    laomo
        2
    laomo  
    OP
       2017 年 5 月 4 日
    @mdzz #1 求具体操作
    lslqtz
        3
    lslqtz  
       2017 年 5 月 5 日   ❤️ 1
    tf 卡拔下来挂载到其它机子,改默认 bash 就可以了。
    没有其它 bash 就从刷写 img 中拷一份出来。
    woohaha
        4
    woohaha  
       2017 年 5 月 5 日   ❤️ 1
    ssh user@raspberry 'chsh -l /bin/bash user'
    或者直接改掉 /etc/passwd 裡的 shell field
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5378 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 08:23 · PVG 16:23 · LAX 00:23 · JFK 03:23
    ♥ Do have faith in what you're doing.