RHCSA SELINUX allow a apache subdirectory to be serviced

RHCSA studying. classroom.example.com 10.0.2.10 has a web server and /var/www/html/repo is where we want the yum repository to be. A little selinux problem with that in enforcing mode. yum -y install nmap  ##our test dummy. The answer: chcon -R -t httpd_sys_content_t “/var/www/html/repo/” restorecon -R /var/www/html/repo Like magic yum then works.

Read More →

RHCSA exam prep recover root password

Your root password is lost and gone forever. Temporary video version without sound.[youtube][/youtube] Your sudo account has been blocked by an incompetent SA(System Administrator). This according to reports is often on the test. It takes 5 minutes to fix. Reboot your system and intervene on the kernel prompt. Press e to edit go down to […]

Read More →

The firewall project

Converting a fairly elaborate iptables based firewall with proprietary anti-spam scripts to the modern firewall-command architecture without revealing any IP. First lets take a look where we started: [root@instance-5 ~]# systemctl list-unit-files | egrep “iptables|firewall” firewalld.service masked iptables.service disabled                   This shows iptables as disabled but a […]

Read More →