New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] using lchsh to change the shell brings user back to fedora setup #307
Comments
I don't now what the root cause of this specific bug is but in general, my recommendation is to not change the login shell of users in Silverblue. You never know when you will need to reset the overrides and once you do that, you won't be able to login as the shell will not exists anymore. Instead, you can add something to your bashrc that checks if the shell that you want is installed and then execute it by default. |
I added the following to my if [ -f /usr/bin/fish ]; then
exec /usr/bin/fish
fi Also it works as long as you are logged in, I could no longer login using GDM after a restart. |
You probably want something like below (untested):
from https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch |
Hello - this actually happened to me as well. Verify that your new shell actually installed properly (try and enter it from the new user). When I had this happen, it was because for whatever reason when I ran
And change the shell back to Hope this helps! EDIT: modifying the shell in This should also work regardless of shell 😄 |
From my perspective, this is not an issue in Silverblue. We should deprecate allowing changing the users shell entirely but that's a much larger change. See #307 (comment) for more details. Fedora 36 is about to go EOL so I'll close this issue. Please provide updated information if this is still an issue. |
We welcome docs PRs to document this issue in the documentation. |
This issue tracker is intended only for Silverblue specific issues. We would like to ask you to try to reproduce the issue on a relevant Fedora Workstation release. If you will be able to reproduce there, then please report it in Red Hat Bugzilla or in upstream (preferred for GNOME projects) and not in this issue tracker.
Describe the bug
When using lchsh to change the default shell (in this case to fish), the user gets brought back to the first-boot/fedora setup screen, where they are prompted to create a new user.
To Reproduce
Please describe the steps needed to reproduce the bug:
sudo lchsh <username>
Expected behavior
The shell should change and the user should be able to log into their user normally, without having to go through the setup again.
Screenshots
OS version:
Additional context
The original user still exists, and once the user goes through the setup and creates a new user they can still log into the old user, the shell is also succesfully changed.
The text was updated successfully, but these errors were encountered: