Saturday, May 18, 2024
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 14009  / 3 Years ago, tue, september 21, 2021, 1:05:11

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?


More From » command-line

 Answers
6

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.


[#16191] Tuesday, September 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ightrushi

Total Points: 129
Total Questions: 125
Total Answers: 127

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;