Page 1 of 1
[SOLVED] I can't login as root after set selinux to enforcing
Posted: 2021/04/05 09:20:22
by mike.smith
hi there
I can't login as root after set state of selinux to enforcing (SELINUX=enforcing) in /etc/selinux/config file and reboot
I don't have GRUB boot loader to boot single user from it
Re: I can't login as root after set selinux to enforcing
Posted: 2021/04/05 13:23:44
by mike.smith
I resolved my problem in this ways:
- boot server from centos 7 boot image
- select Troubleshooting from items menu
- select Rescue a CentOS system from next menu
- press Enter to get a shell
- change root environment with this command: # chroot /mnt/sysimage
- edit /etc/selinux/config file and change selinux mode to permissive
- exit from root shell and reboot server
Re: I can't login as root after set selinux to enforcing
Posted: 2021/04/05 15:01:17
by scottro
Thanks for coming back and letting us know how you fixed it. I'll marked the thread as solved.