zsh - ubuntu 更改默认shell,导致root su无法登录?
PHPz
PHPz 2017-04-21 10:55:44
0
3
1035

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


再补充一下

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

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

  • sudo vi /etc/passwd
  • chsh -s $(which bash/zsh)
  • sudo -s -H
    ...

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

PHPz
PHPz

学习是最好的投资!

reply all(3)
左手右手慢动作

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

巴扎黑

sudo -s -H

洪涛

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

codekissyoung:x:1000:1000::/home/codekissyoung:/usr/bin/zsh
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!