Home  >  Q&A  >  body text

zsh - ubuntu 更改默认shell,导致root su无法登录?

如题,提示无法执行zsh,没有那个文件或目录


再补充一下

user@my:/gitwork/snippet/nodejs$ echo $SHELL
/bin/zsh

= =
就在我更新问题的时候,不知到操作了什么,莫名其妙就好了。、
其中涉及到操作

继续研究,搞清楚了原因再来更新问题,感谢大家的回答。

PHPzPHPz2740 days ago1012

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-21 10:57:44

    If you have sudo permissions, you can try changing the root shell in /etc/passwd.
    Or use chsh to change shell
    For details, please refer to: http://roclinux.cn/?p=739

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-21 10:57:44

    sudo -s -H

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 10:57:44

    sudo vim /etc/passwd Modify user login shell
    Reference is as follows:

    codekissyoung:x:1000:1000::/home/codekissyoung:/usr/bin/zsh

    reply
    0
  • Cancelreply