Skip to content

Instantly share code, notes, and snippets.

@sevkin
Created July 30, 2022 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevkin/e36bf2c3360575479991167c60509212 to your computer and use it in GitHub Desktop.
Save sevkin/e36bf2c3360575479991167c60509212 to your computer and use it in GitHub Desktop.
fedora existing user can`t login

https://www.reddit.com/r/Fedora/comments/88rze5/fedora_wont_let_me_login_into_preexisting_user/

I've kept my /home partition the same across distros. I just installed Fedora KDE spin, but not it won't let me login through SDDM. This hasn't been an issue with other distributions like Ubuntu or Arch. Not the best first impression...

How do I fix this?

I get the following error when trying to login in the console:

 -- username : /home/username: change directory failed: permission denied
Logging in with home="/"
sudo restorecon -R /home

It deletes nothing just restoring some things related to SELinux. Sorry I don't know much about that but I had the same problem some days before and it was fixed with that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment