How Do You Install AppArmor on a Debian or Ubuntu Linux server?

Problem scenario
You want to protect your Debian/Ubuntu Linux server. You do not want to run SELinux. What should you do?

Solution
Run this command:
sudo apt install apparmor-profiles

Check the status with this command:
sudo apparmor_status

You are done. If you want to learn more go to this site.


AppArmor comes installed and configured with many Debian distributions of Linux. SELinux can be difficult to install and configure on a Debian distribution; SELinux is made by Red Hat.

These sources say SELinux can be difficult to use with a Debian distribution:
https://www.reddit.com/r/linuxquestions/comments/nq741n/setting_up_a_separate_home_partition_to_work_with/

https://linuxconfig.org/how-to-disable-enable-selinux-on-ubuntu-20-04-focal-fossa-linux

Leave a comment

Your email address will not be published. Required fields are marked *