custom ssh port - selinux hate me

Support for security such as Firewalls and securing linux
hastar
Posts: 9
Joined: 2017/09/21 13:13:37

Re: custom ssh port - selinux hate me

Post by hastar » 2017/09/22 10:03:23

hmm
i've checked
/boot/grub2/grub.cfg
and find there selinux=0 parameter
changed 0 to 1
annd after rebooting i got selinux enabled

why centos doesn't apply changes from /etc/default/grub ?
Last edited by hastar on 2017/09/22 10:03:58, edited 1 time in total.

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: custom ssh port - selinux hate me

Post by stevemowbray » 2017/09/22 10:03:54

Did you run grub2-mkconfig after changing the file and before rebooting?

hastar
Posts: 9
Joined: 2017/09/21 13:13:37

Re: custom ssh port - selinux hate me

Post by hastar » 2017/09/22 10:16:24

thank you stevemowbray and other guys.
i didn't know about it (newbie).
Just updated config using grub2-mkconfig -o /boot/grub2/grub.cfg
after reboot selinux is enabled

Post Reply