Sunday, September 24, 2017

command line - ZSH removed, cannot relogin




So I have install zsh and I didnt like it.
so I did apt-get remove zsh



From that point I cannot relogin, i click my user.. and then it just go back to the login screen. I can only login with the Guest session.



I think the problem is caused because the defualt shell on my user is zsh and it doesnt exists anymore..



How can I reinstall it from the guest session of change my users default shell for guest user?




Even trying to loging with ctrl+alt+f2/6 i type my user and password. login is success but i the thrown back to the login.



Any ideas?



The guest user is not granted the permission to run sudo or pkexec, which (unless you're root, which you're not) are required in order to change another user's shell.



So the only solution occurring to me is booting into a root shell and changing the user's shell as root:



chsh -s /bin/bash user



Where user is your user's username.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...