Z
Z
zelsky2016-04-05 23:22:47
linux
zelsky, 2016-04-05 23:22:47

Why doesn't terminal work after uninstalling zsh?

Removed oh-my-zsh . I confused something with sudo usermod bin/bash , apparently I did not register the username.
When you start the terminal, the cursor blinks, and everything is neither set nor the usual [email protected]:~$ .
Please tell me how to fix.
UPD:
After ctrl+alt+f1 form with authorization . But when you press enter, it returns to the same form with a username and password.
UPD:
That's all I see in the terminal, nothing is displayed when I type. When I close the terminal window - logout.
665bb05704b24834b19ea7f7c210af33.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
Pavel Selivanov, 2016-04-06
@zelsky

For myself:
For any user from root:
You can edit /etc/passwd by hand, but chsh is ideologically correct - it always works the same way, even if users arrive from LDAP/sssd/...
If you can't log into the system due to a broken shell - boot from LiveCD the same bitness, mount the system root somewhere, make chroot and chsh itself there.

M
Maxim Moseychuk, 2016-04-06
@fshp

If you can't start the console because of a broken shell, well, boot from the LiveCD and fix it from there. You have been using it for the second year, and you ask such questions.

M
magazovski, 2016-04-05
@magazovski

Edit yours /etc/passwdso that the shell is valid eg /bin/bash, then you need to restore your rc file.cp /etс/skel/.bashrc ~/

S
Sly_tom_cat ., 2016-04-06
@Sly_tom_cat

Something confused with sudo usermod bin/bash

.... you need to fix the bash ..... show
ll bin/bash

V
Vlad Zhivotnev, 2016-04-06
@inkvizitor68sl

gksudo -u root gnome-terminal /bin/bash
Or whatever user you have with admin rights.
Well, then vipw and let's go. Or usermod.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question