V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
laomo
V2EX  ›  问与答

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

  •  
  •   laomo · May 4, 2017 · 2449 views
    This topic created in 3285 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   ·   2605 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:53 · PVG 22:53 · LAX 07:53 · JFK 10:53
    ♥ Do have faith in what you're doing.