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

2017-05-04 15:53:12 +08:00
 laomo
cannot execute /usr/bin/zsh:No such file or directory
1772 次点击
所在节点    问与答
4 条回复
mdzz
2017-05-04 16:15:03 +08:00
TF 卡拔下来改 login shell
laomo
2017-05-04 16:23:04 +08:00
@mdzz #1 求具体操作
lslqtz
2017-05-05 02:36:21 +08:00
tf 卡拔下来挂载到其它机子,改默认 bash 就可以了。
没有其它 bash 就从刷写 img 中拷一份出来。
woohaha
2017-05-05 12:02:56 +08:00
ssh user@raspberry 'chsh -l /bin/bash user'
或者直接改掉 /etc/passwd 裡的 shell field

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/359104

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX