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

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

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