Closed goop32 closed 2 months ago
Edited to add systemd service log. When computer was first booted, the shell was set to /usr/bin/bash, and I was able to log in. After setting the shell to /sbin/fish (it is there, I swear), I get the User has an invalid shell '/sbin/fish'
error.
@goop32 The problem lies in that /sbin/fish
is not a registered shell in /etc/shells
. When running chsh -s /sbin/fish
as your user, you see something like this:
chsh: "/sbin/fish" is not listed in /etc/shells.
Use chsh -l to see list.
And indeed, when reading that text file, /sbin/fish
is not present. This means it isn't an Ly issue, so I'll be closing it.
Oh, I see. I'll be honest, I didn't know chsh
was a thing, I would just edit my shell from /etc/passwd
. Thanks for teaching me something today!
Pre-requisites
Ly version
1.0.2
Observed behavior
When my shell is set to /sbin/fish in /etc/passwd, ly will not let me log in. I get an error that says my credentials are invalid. I logged into the root user and reset my password but I was still given the same error.
Expected behavior
I expected ly to let me log in normally.
Steps to reproduce
1) Install fish, get path of fish, set login shell to path in /etc/passwd 2) Exit window manager 3) Type in user's credentials 4) ly gives incorrect credentials error
Relevant logs