on centos 8 there are so many shells ,which one you are using?
check out cat /etc/shells to make sure allowance
if you wanna make sense you actually do
check cat /etc/passwd
you are seeing “bash or nologin” at the end of each line
those are shells you used
bash your linux default shell records almost all your commands you typed on shell in ~/.bash_history
so if you type some passwords before,and some hacker hacks your linux,you died.