Thursday, January 22, 2015

disable selinux centos7

from http://blog.zwiegnet.com/linux-server/disable-selinux-centos-7/

summary:
[root@localhost ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
now execute:

[root@localhost ~]# sed -i 's/enforcing/disabled/g' /etc/selinux/config 

then reboot

Friday, January 09, 2015

how to deference Data::Dumper output

see my post here:
http://stackoverflow.com/questions/27870579/how-do-i-dereference-datadumper-output