linub
21 September 2023 13:35
1
Hello
yesterday i did the update,rebooted and all was fine.
today i type my password as usual and it fails.
i checked in tty,and the right characters a being typed.
what should i do?
i booted a live cd,used chroot to change the password,but i still get an error at log-in.
1 Like
Hello,
Just out of curiosity could you log in to tty as root and check /etc/shells
file and see if the shell that you are using as regular user is listed ??
If not write the path of the shell that you are using and reboot. It should fix the problem.
I had that kind of problem once…
3 Likes
linub
21 September 2023 14:08
3
Yesyerday i messed with the shell and shell.pacnew files,so it must be it.
that was it.
instead of zsh, only sh was written there.
it’s weird since i only copy pasted the entire thing from the pacnew file. so maybe it was erroneous there.
Thank you very much.
1 Like
Yes, there was update and some shells were missing, also add bash if its not there.
1 Like
linub
21 September 2023 15:52
5
this is what i have in my “shells” file right now:
# Pathnames of valid login shells.
# See shells(5) for details.
/bin/zsh
/bin/bash
/bin/rbash
/usr/bin/zsh
/usr/bin/bash
/usr/bin/rbash
It looks good.
Above /bin/zsh
, I have /bin/sh
, but its not installed on my system. So I guess its not necessary, but I don’t touch it.
I was also missing /bin/zsh
when I had the problem.
Cheers…
GokuSan:
Above /bin/zsh
, I have /bin/sh
, but its not installed on my system. So I guess its not necessary, but I don’t touch it.
/bin/sh
is a symbolic link to ./bash
.
[nx-74205:/dev/pts/3][/home/aragorn]
[aragorn] > ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Sep 3 19:22 /bin/sh -> bash
If bash
is called as sh
, it will behave as a traditional Bourne shell, without all of the extended functionality that bash
offers over the old sh
.
Ditto. But I didn’t have any problem with it, because I’m still using bash
as my default shell.
1 Like
system
Closed
24 September 2023 06:09
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.