laomo
V2EX  ›  问与答

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

  •  
  •   laomo · May 4, 2017 · 2515 views
    This topic created in 3320 days ago, the information mentioned may be changed or developed.
    cannot execute /usr/bin/zsh:No such file or directory
    4 replies    2017-05-05 12:02:56 +08:00
    mdzz
        1
    mdzz  
       May 4, 2017   ❤️ 1
    TF 卡拔下来改 login shell
    laomo
        2
    laomo  
    OP
       May 4, 2017
    @mdzz #1 求具体操作
    lslqtz
        3
    lslqtz  
       May 5, 2017   ❤️ 1
    tf 卡拔下来挂载到其它机子,改默认 bash 就可以了。
    没有其它 bash 就从刷写 img 中拷一份出来。
    woohaha
        4
    woohaha  
       May 5, 2017   ❤️ 1
    ssh user@raspberry 'chsh -l /bin/bash user'
    或者直接改掉 /etc/passwd 裡的 shell field
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2910 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 14:12 · PVG 22:12 · LAX 07:12 · JFK 10:12
    ♥ Do have faith in what you're doing.