Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
安装zsh后 无法切换到root用户
Experiences and Insight
2493
views ·
5
replies ·
To
floor
Go
zxr615
deepin
2017-07-20 01:27
Author
刚刚用apt-get安装了zsh后有卸载了zsh,然后再切换root用户的时候就切换不回来了,请问大家这个问题怎么解决。
Reply
Like 0
Favorite
View the author
All Replies
zxr615
deepin
2017-07-20 01:28
#1
本帖最后由 zxr615 于 2017-7-19 18:00 编辑
...
Reply
Like 0
View the author
duanyao
deepin
2017-07-20 02:54
#2
把 /etc/passwd 里面的 /usr/local/bin/zsh 改回 /bin/bash 。
我试了,安装 zsh 和 sudo su 并不会改默认 shell ,你应该还做了其它事情吧。
Reply
Like 0
View the author
呆了个呆
deepin
2017-07-20 17:05
#3
这个锅不是官方的,而且你这个问题自己就能解决,提示得那么清楚,是zsh路径不对自己用 whereis zsh找一下再修改 /etc/passwd 就好了
Reply
Like 0
View the author
134******40
deepin
2017-07-20 18:47
#4
肯定修改passwd就解决了。不过没权限怎么改还是问题。
Reply
Like 0
View the author
Feng Yu
deepin
2017-07-20 19:38
#5
shell已经被你干掉了,没有合法的shell是无法切换用户的,你可以用sudo -s /bin/bash这种形式强行指定一个可用的shell切换
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More