Skip to content

Login loop after chsh to st

I installed st and added it to my shells file, then executed chsh to make it the default shell. After logging out to apply changes since echo $0 still gave bash, I was put into a login loop. Changing ttys does the same thing and root as well as my user profile experience the same loop. After poking around forums and the wiki for 45 minutes I found someone that chrooted into the drive from a live iso and edited boot, but of course he didn't say what was broken. So I'm not sure exactly what I should be looking for if that's the only option other than completely reinstalling. Any advice would be greatly appreciated. Thanks in advance (:

1 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
fp2ftc

Author

1
posts
9
comments
0
media
View profile

7 comments

The only st I know of is the suckless simple terminal. Is that what you're talking about? If so, it's a terminal, not a shell so that's likely the problem. Otherwise I'm not sure what you're talking about. Do you have a link to the package?

3 points

Like /u/aeryxium said, st is a terminal emulator, not a shell. That accounts for the problems you're experiencing.

I'm not sure if I understood correctly, but can you login in from the tty as root? If you can, you could try to change your user's login shell with usermod, as in usermod -s /bin/bash yourusername. You also need to remove st from /etc/shells.

If you can't do that, you can launch single-user mode from the grub menu when you reboot: see here

3 points

st is not a shell... it's a terminal emulator. don't use it as a shell. there's a reason it's not in the shells file...

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.