Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Amazing, thanks a lot! I've lost SSH and sudo and somehow was able to log in into root after tinkering with emergency console (rd.break added to linux line in grub, ctrl+x to boot, mount -o remount,rw /sysroot && chroot /sysroot afterwards), and reinstalling packages showed errors like error: lsetfilecon: (-1 sudoedit;65cf6177, system_u:object_r:bin_t:s0) No such file or directory; error: Plugin selinux: hook fsm_file_prepare failed which was fixed by your proposed fix. Sudo works now as well as SSH, thanks a ton! Commented Feb 16, 2024 at 13:26
  • My thanks also Matt. This happened to a headless server, so it was a real pain restoring access. I followed the same process as Dmitry. It was the fsm_file_prepare failure that brought me to this SE question/answer. Commented Mar 4, 2024 at 11:39