Join our Newsletter — 33% off our NHI Course
Home› Guides› SUSE Linux Enterprise Server Hardening Guide: Permissions, AppArmor,…
Guide Endpoint Security

SUSE Linux Enterprise Server Hardening Guide: Permissions, AppArmor, Patching and SAP HANA Hosts

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 14 min read
On this page

Hardening SUSE Linux Enterprise Server means using the controls SUSE already ships, such as permission profiles, AppArmor, YaST security settings and security patch channels, and then applying the extra SAP-specific measures SUSE documents for SAP HANA hosts. SLES is widely used for SAP workloads, which makes these servers some of the most valuable in an estate: they run the systems that hold finance, supply chain and HR data, and they host service accounts such as the SAP <sid>adm user that have broad rights over those systems.

This guide is for Linux administrators, SAP Basis teams and security engineers. It follows the structure of SUSE's own Security and Hardening Guide for SLES 15 SP7 and SUSE's operating system hardening guide for SAP HANA. For generic Linux controls that apply to any distribution, see the Linux Server Hardening Guide; this page concentrates on what is specific to SUSE.

This is an independent guide from NHI Mgmt Group, based on SUSE's public documentation as of November 2026. It is not sponsored or reviewed by SUSE. Product features change, so confirm settings against SUSE's current documentation for your service pack.

Key takeaways

  • Pick a permission profile deliberately. SUSE ships easy (the default), secure for servers without a full graphical interface, and paranoid as a template for maximum security, applied with chkstat --system --set.
  • Separate file systems for at least /, /boot, /var, /tmp and /home, and consider noexec, nodev and nosuid per mount, testing each one.
  • Use AppArmor in enforce mode for exposed services. Build profiles in complain mode first, review events with aa-logprof, then enforce, and use aa-unconfined to find network services with no profile.
  • Start SAP HANA hosts from a minimal installation, add only the documented patterns, and apply security patches promptly with zypper patch -g security.
  • Restrict SAP service accounts. SUSE's SAP HANA guide restricts sudo to the wheel group, uses /etc/cron.allow so <sid>adm cannot create its own cron jobs, limits SSH logins with pam_access and prohibits remote root login.
  • Test every hardening change on a non-production system first, with a backup or snapshot. SUSE warns that settings can affect functionality and that custom permissions are not supported if they break applications.

Plan the installation: partitions and packages

Hardening is cheaper at install time than afterwards. SUSE's guidance is that servers should have separate file systems for at least /, /boot, /var, /tmp and /home. Separation lets you apply mount options per partition and stops a full /var or /tmp from filling the root file system.

Three mount options matter most:

  • noexec prevents execution of files on the partition.
  • nodev prevents character or block special devices from being usable.
  • nosuid prevents the set-user-ID and set-group-ID bits from taking effect.

SUSE notes that each option needs to be considered carefully before it is applied. noexec on /tmp, for example, can break installers and some application tooling, so test on a staging host with the real workload.

Keep the package set small. The Software management chapter of SUSE's Security and Hardening Guide covers removing unnecessary packages and patching. For SAP HANA hosts, SUSE's hardening guide describes installing with the Minimal role (the Base System pattern) and then adding the Enhanced Base System and SAP Application Server Base patterns, and says the X Window System pattern should be installed only if needed. Every extra package is extra patching and extra attack surface.

Where the data on a host is sensitive, the guide also covers encrypting partitions and files; plan disk encryption at install time rather than retrofitting it.

File permissions with permission profiles and chkstat

SUSE manages the permissions of security-relevant files through profiles rather than ad hoc chmod commands. The Security and Hardening Guide describes three:

ProfileSUSE's description
easyThe default. For systems that need user-friendly graphical interaction.
secureFor server systems without fully fledged graphical user interfaces.
paranoidFor maximum security. Removes all setuid, setgid and capability bits; intended as a template for custom permissions rather than for use as is.

For most servers, secure is the natural starting point. Select the profile in /etc/sysconfig/security through the PERMISSION_SECURITY variable (SUSE's example is PERMISSION_SECURITY="easy local"), and put site-specific changes in /etc/permissions.local or a drop-in file under /etc/permissions.d/. Apply the setting with chkstat --system --set.

Two details are easy to miss. First, permissions are also applied during zypper package updates, so a profile you have chosen keeps being enforced as packages change. Second, SUSE suggests running chkstat regularly through cron or a systemd timer to catch drift. SUSE also warns that custom permissions can break standard applications, and that it cannot provide support for those scenarios, so test changes first.

Home directories, umask and special bits

  • Home directories: SUSE suggests /home at 755 and individual home directories at 700, with HOME_MODE set to 0700 in /etc/login.defs so new directories are created private.
  • umask: the default is 022. SUSE suggests stricter values such as 037 depending on the threat model, and 077 for maximum security, noting that it can surprise users and software. Set it globally with UMASK in /etc/login.defs; the pam_umask.so module applies it, and users need to log in again for changes to take effect.
  • SUID, SGID and capabilities: search for and document SUID and SGID files, and prefer file capabilities over the SUID bit where possible. The Linux Capabilities Guide explains the model.
  • Other audits: SUSE also lists checks for world-writable files, unowned files and files not tracked by the package manager. Files outside package control are a common hiding place for persistence.

Confining services with AppArmor

AppArmor is SUSE's application confinement framework. SUSE describes it as a solution that applies privilege confinement to suspect programs, enforcing good application behaviour without relying on attack signatures. A profile is a list of files a program may access and operations it may perform, and profiles are stored as plain text files in /etc/apparmor.d. SUSE also documents SELinux for SLES 15 SP7 in a separate part of the guide; choose one framework per host and follow the matching chapter.

Each profile runs in one of two modes:

  • Complain mode: violations are permitted but logged.
  • Enforce mode: violations are logged and not permitted.

A practical workflow using SUSE's command-line tools:

  1. Run aa-unconfined, which examines open network ports, to find network-facing services that have no profile. Those are your priority list.
  2. Create a profile for each with aa-genprof, AppArmor's profile generating utility, while exercising the service's normal functions.
  3. Run the profile in complain mode under real load, then use aa-logprof, which reviews complain and enforce mode events, to refine it.
  4. Switch the profile to enforce mode once the log is quiet.
  5. Keep profiles under change control and reload them after edits. SUSE documents that a reload rescans /etc/apparmor.d without unconfining running processes, whereas stop removes all profiles from kernel memory, disabling AppArmor's access control.

You can check AppArmor's state by inspecting /sys/kernel/security/apparmor/profiles. Monitor for AppArmor being stopped, because stopping the service unloads every profile at once.

AppArmor is particularly useful for daemons that hold credentials: web servers, agents, backup clients and anything that reads API keys or database passwords. A tight profile limits what an attacker can read even if they get code execution in that service.

YaST security settings and compliance profiles

SUSE's Security and Hardening Guide includes a chapter on configuring security settings with YaST, covering a security overview, predefined security configurations, password settings, boot settings, login settings, user addition and miscellaneous settings. YaST is a convenient way to review these settings on a single host; for fleets, capture the resulting configuration in your configuration management so it can be applied and checked consistently.

The guide's Regulations and compliance part has chapters on Common Criteria, FIPS 140-3, PCI DSS and STIG hardening. If your organisation must meet one of these, start from the relevant chapter rather than assembling settings by hand, and use the CIS Benchmarks as an additional baseline where your auditors expect them. For cryptography settings, see the Linux System-Wide Crypto Policies and FIPS Mode Guide.

The guide also covers Polkit, access control lists and restricting cron and at. Treat Polkit rules as privileged configuration: they decide which unprivileged users and services can perform administrative actions without a password.

Authentication, sudo and SSH

SUSE's Authentication part covers PAM, Kerberos, LDAP, Active Directory support and integration with Microsoft Entra ID through Himmelblau. Connect servers to a central directory so that human administrators use named accounts, and keep local accounts for break-glass access only. The Linux PAM Guide explains the PAM stack.

SUSE's SAP HANA hardening guide gives concrete examples that apply well beyond SAP:

  • Restrict sudo to the wheel group by uncommenting %wheel ALL=(ALL) ALL and adding administrators with usermod -aG wheel <admin_user>. The guide describes this as prohibiting sudo for all users other than members of wheel.
  • Restrict SSH logins with pam_access through /etc/security/access.conf, allowing only named accounts such as <sid>adm, sapadm and an administrative user from specific subnets.
  • Prohibit remote root login, so every administrative session starts from a named account.

The guide carries an important warning: a mistake in the pam_access configuration can cause a denial of access for the entire system. It also advises against using pam-config for this change, because that tool only supports pam_access as a global module. Keep a console session open while testing and have a recovery path.

The Security and Hardening Guide's OpenSSH chapter covers server hardening and password authentication. Prefer key or certificate-based authentication for administrators and automation, keep keys in a managed store rather than scattered across home directories, and review authorized_keys files regularly. SSH keys used by automation are non-human identities and deserve an owner, a purpose and a rotation date.

Network exposure and firewalls

SLES uses firewalld, and the Security and Hardening Guide covers it alongside migration from SuSEfirewall2, VPN servers and sysctl network settings. Default to closing every port that the host's role does not need, and keep management services such as SSH reachable only from administrative networks.

For SAP HANA hosts, SUSE's hardening guide describes a dedicated SAP HANA firewall that extends firewalld and is installed with zypper install HANA-Firewall. Points to note from that guide:

  • Configure firewalld for non-SAP services such as SSH before setting up the SAP HANA firewall.
  • All remaining network ports are closed once the firewall is active.
  • The SAP HANA firewall rules cover IPv4 only, so handle IPv6 explicitly.
  • Enable firewalld at boot and make sure no other non-SUSE firewall starts automatically.

For host firewall design in general, see the Linux Firewall Guide.

Patching and update strategy

The Software management chapter covers patching Linux systems. SUSE's SAP HANA hardening guide is specific: install security patches with zypper patch -g security, and apply security fixes immediately. It also says regular full updates are a good strategy for non-production HANA systems but not for systems in production, which reflects how tightly SAP certification ties the stack to tested versions.

A workable approach is to separate the two streams: security patches on a short, agreed cycle for every SLES host, and full updates in planned maintenance windows after testing in a non-production landscape. Where reboots are hard to schedule, consider live kernel patching; the Linux Kernel Live Patching Guide covers the trade-offs. Keep repository signing keys and registration credentials protected, because they decide what software the fleet will trust.

SAP workloads and their service accounts

SAP hosts are where SLES hardening matters most, and where it is most likely to break something. SUSE's SAP HANA guide recommends executing every hardening setting on a non-production system first, warns that settings may have a negative impact on functionality, and advises taking a backup, or a snapper snapshot of the root file system if btrfs is used, before making changes. The guide in question was written for SLES 15 GA and SP1, and its changelog notes that a changed guide exists for SP2 and later, so check the current SUSE guide for your service pack before applying any setting.

The SAP operating system accounts, such as <sid>adm and sapadm, are non-human identities with considerable power over the SAP system. Controls from SUSE's guide that limit them:

  • Creating /etc/cron.allow means SAP HANA users and other users can no longer create their own cron jobs, which removes an easy persistence route.
  • pam_access limits where those accounts can log in from.
  • Sudo restricted to wheel means the SAP accounts cannot escalate unless deliberately granted.

Add your own governance on top: document who can log in as each SAP account, keep their passwords or keys in a privileged access tool, and review their group memberships. For the application layer, see SAP and ERP Security.

Logging, auditing and integrity monitoring

SUSE's Security and Hardening Guide includes a full part on the Linux Audit Framework and a chapter on intrusion detection with AIDE, which covers building a database and running local and system-independent checks. Use AIDE or another file integrity tool on critical paths such as /etc, /usr/bin and the AppArmor profile directory. The Linux File Integrity Monitoring Guide and the Linux Logging and auditd for Defenders Guide cover design and rule sets.

SUSE's SAP HANA guide adds two points: the SUSE security checker (seccheck) performs security checks through cron jobs and mails reports to root, and log files should be forwarded from SAP HANA nodes to a central syslog server. Make sure root's mail actually reaches someone, or the reports go unread.

Illustrative events worth alerting on: AppArmor being stopped or profiles moved to complain mode, changes to /etc/permissions.local or the PERMISSION_SECURITY setting, new SUID files, changes to /etc/security/access.conf or sudoers, and new entries in authorized_keys for SAP accounts.

Common failure patterns

  • Default profile on servers. Servers left on the easy permission profile intended for graphical desktops.
  • Paranoid applied as is. The paranoid profile applied directly instead of used as a template, breaking tools that need setuid or capabilities.
  • AppArmor stuck in complain mode. Profiles created and never moved to enforce, so they log but do not block.
  • Unprofiled network services. Services listening on the network with no AppArmor profile, never checked with aa-unconfined.
  • Full updates on production SAP hosts. Unplanned full updates breaking a certified stack, which then leads teams to stop patching altogether.
  • Locked out by pam_access. A pam_access change applied without a console session, denying access to the whole system.
  • IPv6 left open. The SAP HANA firewall applied without handling IPv6, which its rules do not cover.
  • Unread security reports. seccheck mail delivered to a root mailbox nobody reads.

Practitioner checklist

  • Install from a minimal role, add only required patterns and keep separate file systems for /, /boot, /var, /tmp and /home.
  • Set PERMISSION_SECURITY to secure on servers, keep local changes in /etc/permissions.local, and run chkstat --system --set on a timer.
  • Set HOME_MODE and a stricter UMASK in /etc/login.defs after testing.
  • Run aa-unconfined, profile every network service and move profiles to enforce mode.
  • Restrict sudo to wheel, prohibit remote root login and limit SSH with pam_access, testing with a console open.
  • Create /etc/cron.allow so SAP and other service accounts cannot add their own cron jobs.
  • Apply security patches promptly with zypper patch -g security and schedule full updates through tested maintenance windows.
  • On SAP HANA hosts, configure firewalld for non-SAP services first, then the SAP HANA firewall, and handle IPv6 separately.
  • Forward logs to central syslog, run file integrity checks and make sure seccheck reports are read.

Standards and references

Related NHI Mgmt Group resources: Linux Server Hardening Guide · SAP and ERP Security · Linux Kernel Live Patching Guide · Enterprise AI Copilot Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.