Docs / Start here / Deployment reference

PDF873 KB

Deploying GPWarden

On this page

This guide takes a RHEL 9 or 10 GNOME workstation from a fresh install to being managed by Group Policy, then walks through common scenarios. Windows admins keep using the tools they already know: GPMC to edit and link GPOs, Get-LapsADPassword for LAPS, Group Policy Modeling to predict results. On the workstation, gpwardenctl update and gpwardenctl result play the parts of gpupdate and gpresult.

Where Linux behaves differently from Windows, RATIONALE.md explains why, what GPWarden does about it, and the remaining risk. This is the complete reference; for a guide in your own terms (Windows administrators, Linux administrators, security reviewers) and step-by-step scenarios, start at guides/.

1. Requirements

Workstations: RHEL 9 or 10 (x86_64 or aarch64), or a rebuild such as AlmaLinux, with GNOME. GPWarden's runtime libraries (OpenSSL, MIT Kerberos, PAM) and SSSD come from the RHEL repositories.

Active Directory:

  • Domain controllers on Windows Server 2016 or later: GPWarden reads SYSVOL over SMB 3.1.1 only, with every message encrypted. GPWarden is verified against Windows Server 2022 DCs and a Windows 11 client in the same OUs.
  • Each DC's DNS name (dNSHostName) inside the domain's DNS namespace (dc1.example.com for example.com), as AD sets it by default. GPWarden uses a DC only after proving it is one (the DC-only Kerberos name ldap/<dc>/<domain> and a domain controller account), so a spoofed DNS or CLDAP reply cannot point it at another server. Read-only DCs are not used.
  • For encrypted LAPS (recommended), you need:
    • domain functional level 2016 or later;
    • a KDS root key (Get-KdsRootKey), as for gMSAs;
    • the Windows LAPS schema extension (Update-LapsADSchema).

Network from each workstation to the DCs:

PortUse
53 TCP/UDPDNS (SRV records for DC location)
88 TCP/UDP, 464 TCP/UDPKerberos, password changes (join, machine password rotation)
389 TCP/UDPLDAP with Kerberos sealing (GPO discovery, security filtering, LAPS); UDP for the DC locator ping
445 TCPSYSVOL over SMB 3 (GPO files)
135 TCP + 49152–65535 TCPRPC for MS-GKDI (encrypted LAPS only)
123 UDPTime (Kerberos needs clocks within 5 minutes)

The workstation's DNS must resolve the AD domain (point it at the DCs or at a resolver that forwards the zone).

2. Prepare Active Directory (once)

On a DC or a machine with RSAT, as a Domain Admin:

PowerShell
# Templates: copy GPWarden's ADMX/ADML into the Central Store, next to Windows' own
# (they come in the gpwarden-admx RPM under /usr/share/gpwarden/admx).
$store = "\\$env:USERDNSDOMAIN\SYSVOL\$env:USERDNSDOMAIN\Policies\PolicyDefinitions"
Copy-Item .\GPWarden.admx $store; Copy-Item .\en-US\GPWarden.adml "$store\en-US"
# Windows LAPS (skip if Windows LAPS is already in use):
Update-LapsADSchema
Set-LapsADComputerSelfPermission -Identity "OU=Linux,OU=Workstations,DC=example,DC=com"
Get-KdsRootKey     # if none: Add-KdsRootKey -EffectiveImmediately (usable after 10 h)

Create an OU for the Linux workstations (or reuse your workstation OU; GPWarden evaluates the same links, inheritance, enforcement, security filtering and WMI filters as Windows). Pre-stage computer accounts if your join process uses them.

3. Join a workstation

GPWarden uses the machine's existing AD identity (the host keytab written by adcli/realm), so join the way RHEL documents it:

Shell
dnf install sssd-ad sssd-kcm adcli krb5-workstation oddjob-mkhomedir
realm join --membership-software=adcli example.com      # or: adcli join with a one-time password

In /etc/sssd/sssd.conf, under [domain/example.com], choose how SSSD treats the Windows logon rights from GPOs (ad_gpo_access_control). enforcing applies "Allow log on locally" and similar rights as Windows does; permissive only logs them. This is SSSD's own feature and independent of GPWarden.

The lab's scripted join (pre-staged account, one-time password, no admin password on the client) is in lab/hetzner/join-client.sh.

4. Install GPWarden

Check the release first: the RPMs are signed with the GPWarden Release Signing Key (fingerprint 243B 7030 A727 5950 90E1 9BEC 3F29 63BB AB79 16A7).

Shell
rpm --import RPM-GPG-KEY-gpwarden            # once; compare the fingerprint above
rpm -K gpwarden-*.rpm                        # "digests signatures OK" for every file
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum -c SHA256SUMS   # also covers the SBOMs
dnf install ./gpwarden-*.rpm                 # gpwardend, gpwardenctl, pam_gpwarden, gpwarden-selinux
gpwarden-authselect enable                   # PAM hook via authselect profile custom/gpwarden
systemctl enable --now gpwardend
gpwardenctl update                           # gpupdate
gpwardenctl result                           # gpresult /r (computer settings as root)
gpwardenctl result --html report.html --user alice   # gpresult /h: computer and user, one HTML page

Updates from the GPWarden subscription repository

With a subscription, GPWarden's signed packages and updates come from the GPWarden repository like any other dnf repository. Your license key is the repository's password; it is checked on the computer, offline, and computers never report to GPWarden: nothing is sent except dnf's own downloads.

Shell
gpwardenctl license set license.key                # the key in a file (or - for stdin); checks it, writes the repository
gpwardenctl license show                        # customer, tier, seats, expiry, source
dnf upgrade gpwarden\*                          # updates from now on, GPG-checked

Or for every computer at once with Group Policy: GPWarden > Software > GPWarden subscription license key (key, optional repository URL for a mirror). A key from policy wins over one set locally; removing the policy removes only the key the policy set. Like any value in a GPO, the key can be read by users who can read the GPO.

The key is stored readable by root only in /etc/dnf/vars/gpwarden_license; the repository file /etc/yum.repos.d/gpwarden-subscription.repo refers to it as $gpwarden_license and checks every package against the GPWarden release key (/etc/pki/rpm-gpg/RPM-GPG-KEY-gpwarden, installed with the RPM). Licenses cover a number of seats: you declare the workstations you run; there is no counting on the computers. An expired key stops repository access (installed packages keep working); gpwardenctl license show tells.

gpwarden-authselect enable creates the authselect profile custom/gpwarden from the profile in use, keeping its features (e.g. with-mkhomedir), and adds pam_gpwarden.so to postlogin for auth and session. The module is optional and returns success whatever happens, so it cannot block a logon. gpwarden-authselect disable switches back.

It also turns on authselect's with-faillock and with-pwhistory features, so the Account Lockout and password history policies can take effect for local accounts. Until a GPO sets them, a marked block in /etc/security/faillock.conf and pwhistory.conf keeps Windows' defaults (no lockout, no history). After upgrading from 0.1.0-7 or earlier, run gpwarden-authselect enable once more.

Check that it works:

Text
# gpwardenctl result
COMPUTER SETTINGS
------------------
    CN=WS042,OU=Linux,OU=Workstations,DC=example,DC=com
    Last time Group Policy was applied: 2026-11-19T12:44:16Z
    Group Policy was applied from:      dc1.example.com
    Site Name:                          HQ

    Applied Group Policy Objects
    -----------------------------
        Linux Desktop
        Workstations
        Default Domain Policy

Compare it with Group Policy Modeling in GPMC for the same computer: the list and the order should be the same. Any user can run gpwardenctl update (refreshes computer policy and their own user policy) and gpwardenctl result (their own user settings). Root can view anyone's with gpwardenctl result --user NAME. gpwardenctl result --html FILE writes the report as one self-contained HTML page laid out like gpresult /h: summary, component status, settings under their policy names by category with the winning GPO, and applied and denied GPOs with the reason.

5. What you can manage

AreaHow to configure itNotes
ProcessingMicrosoft's System > Group Policy settings: refresh interval for computers (Computer Configuration) and for users (User Configuration: "Set Group Policy refresh interval for users"), "Always wait for the network at computer startup and logon", user Group Policy loopback processing modeSame defaults as Windows (90 + 0–30 min, background processing). Each signed-in user's policy is refreshed on that user's own schedule, from their own policy, independently of the computer's. GPWarden's template has the computer interval and the network wait under GPWarden > Group Policy.
Logon bannerSecurity Options: "Interactive logon: Message title/text for users attempting to log on"GDM login screen, text consoles and SSH (before authentication).
Screen lockSecurity Options: "Interactive logon: Machine inactivity limit"GNOME idle lock, also before suspend; users cannot turn locking off.
Lock on wakeAdministrative Templates > System > Power Management > Sleep Settings: "Require a password when a computer wakes" (on battery or plugged in)GNOME locks the screen before suspend.
Removable storageSystem > Removable Storage Access: "All Removable Storage classes: Deny all access"Blocks USB mass storage at once, including drives already plugged in.
Windows LAPSSystem > LAPS, all settingsSee below.
Startup/shutdown scriptsWindows Settings > Scripts (Startup/Shutdown) in GPMC: add a Linux script (first line #!, e.g. #!/bin/bash) with "Show Files" and "Add"Runs as root in GPMC's order; Windows scripts in the same GPO are skipped. Output and exit codes are in journalctl -u gpwardend -g script. Save scripts with Unix line endings.
Logon/logoff scriptsUser Configuration > Windows Settings > Scripts (Logon/Logoff), the same wayRun as the user, with their Kerberos ticket. Logon scripts run in the background; logoff scripts hold the session end until done (at most 600 s).
SoftwareGPWarden > Software > Install packages and Remove packagesdnf, at computer startup like assigned software; optional removal when the policy no longer applies.
RepositoriesGPWarden > Software > Configure package repositories (ID = base URL, ID = signing key URL)/etc/yum.repos.d/gpwarden.repo, GPG checking always on.
Automatic updatesWindows Components > Windows Update > Configure Automatic Updates (Microsoft's policy), plus GPWarden > Software > Install only security updatesdnf-automatic: 2 = notify, 3/7 = download only, 4 = install at the scheduled day/hour; "No auto-restart with logged on users" respected.
Password and lockout policySecurity Settings > Account Policies > Password Policy and Account Lockout Policy, usually in the Default Domain PolicyAs on a Windows domain member, these apply to local accounts; domain accounts follow the domain policy on the DCs. Minimum length and complexity → pam_pwquality (complexity = 3 of 4 character classes, not the user name; pwquality's minimum is 6), history → pam_pwhistory, lockout → pam_faillock (faillock --reset --user NAME unlocks, as an administrator does on Windows), password ages → login.defs and chage for existing local users (not root, not the LAPS account). All undone when no GPO sets them.
Browser single sign-onThe Site to Zone Assignment List (sites in the Intranet or Trusted zone), or each browser's own policy: Google's and Microsoft's templates (AuthServerAllowlist, AuthNegotiateDelegateAllowlist), Mozilla's Firefox template (Authentication)Firefox, Chrome, Chromium and Edge sign users in to those sites with their Kerberos ticket, no prompt. Firefox: /etc/firefox/policies/policies.json (an existing file keeps its other policies); Chromium-based browsers: .../policies/managed/gpwarden-sso.json. A browser's own policy wins over the zone map, as on Windows.
Chrome, Edge, ChromiumGoogle's and Microsoft's own administrative templates (chrome.admx, msedge.admx, chromium.admx) in the Central Store, Computer Configuration: every policy, mandatory and Recommended/etc/opt/chrome, /etc/opt/edge and /etc/chromium policies/managed/gpwarden.json and policies/recommended/gpwarden.json, typed as the browser types them on Windows: GPWarden reads the templates from the Central Store (switches become true/false, numbers stay numbers, lists become arrays, JSON text such as ManagedBookmarks becomes JSON). Single sign-on settings are merged in; an explicit GPO setting wins. Without the templates in the Central Store, values are typed from the registry alone and the RSoP says which. User Configuration browser policies are reported, not applied: the browsers have no per-user policy location on Linux. Check with chrome://policy / edge://policy.
PrintersPreferences > Control Panel Settings > Printers (computer: TCP/IP printers; user: shared and TCP/IP printers, "set as default", item-level targeting) and printers deployed with Print ManagementCUPS queues. Shared printers print over SMB with the signed-in user's Kerberos ticket (install samba-krb5-printing, which the RPM recommends); TCP/IP printers print raw (9100) or LPR. Computer printers are open to all users; a printer from user policy only to the users who received it. The user's default printer is set in ~/.cups/lpoptions. Driver: CUPS' generic PostScript, or the model named in GPWarden > Printers > Printer drivers.
CertificatesNothing for trust: the enterprise root CAs published in AD are trusted on every member, as on Windows. Auto-enrollment: Microsoft's Windows Settings > Security Settings > Public Key Policies > Certificate Services Client - Auto-EnrollmentRoot CAs go to /etc/pki/ca-trust/source/anchors/gpwarden-ad-*.pem (update-ca-trust). With auto-enrollment enabled, the computer enrolls for every template published on an enterprise CA that is marked for auto-enrollment and grants the computer Enroll and Autoenroll (e.g. a copy of Workstation Authentication): key and request made locally (OpenSSL), submitted with the computer's Kerberos ticket over RPC (MS-ICPR). Renewed within the template's renewal period, and after Reenroll All Certificate Holders in the Certificate Templates console; a valid certificate is renewed as Windows renews it, with a request signed by the current key, so the CA records a renewal and Issuance Requirements > Valid existing certificate approves it without a CA manager (the CA applies that only to certificates with a UPN or e-mail name, i.e. user certificates, for Windows as for GPWarden). Request Handling > ... use the existing key renews with the same key; otherwise a new key is made. A request the CA leaves for a CA manager (Issuance Requirements > CA certificate manager approval) is kept with its key and the certificate is collected at the first refresh after approval; no second request is made meanwhile. Certificate /etc/pki/gpwarden/<template>.crt, key /etc/pki/gpwarden/private/<template>.key (root only). Users: Microsoft's User Configuration > ... > Public Key Policies > Certificate Services Client - Auto-Enrollment enrolls each signed-in user, with their own Kerberos ticket, for every published auto-enrollment template their token may Enroll and Autoenroll (e.g. a copy of User for Domain Users); certificate and key in ~/.cert/gpwarden/ (user only, SELinux home_cert_t), and in the user's NSS database ~/.pki/nssdb for Chrome, Chromium and Edge when nss-tools is installed. With SSSD's default home /home/<domain>/<user>, give that tree the labels of /home once: semanage fcontext -a -e /home /home/<domain> && restorecon -R /home/<domain> (or set override_homedir = /home/%u).
Disk encryption recoveryMicrosoft's Windows Components > BitLocker Drive Encryption: Operating System Drives (LUKS volume under /) and Fixed Data Drives (other LUKS volumes) > Choose how ... drives can be recovered: enabled, recovery password allowed, Save BitLocker recovery information to AD DSFor each LUKS volume in scope without one, GPWarden adds a 48-digit BitLocker-format recovery password as a new keyslot and stores it on the computer object as an msFVE-RecoveryInformation object, so it shows on the computer's BitLocker Recovery tab and in Get-ADObject. Needs automatic unlock (Clevis with TPM2 or Tang) to add the key unattended; a volume with only typed passphrases is reported. If AD refuses the object, the keyslot is removed again. The slot is marked by a gpwarden-recovery LUKS2 token (cryptsetup luksDump) and stays when the policy goes away, as BitLocker's protectors do. Rotation: with GPWarden > Disk encryption > Rotate the recovery password after it is used (Windows offers this only through Intune), a volume unlocked without its automatic unlock (someone typed a passphrase at boot) gets a new recovery password at the next refresh: the new one is stored in AD first, then the old keyslot and the old AD object are deleted, so the computer's BitLocker Recovery tab shows only the password that works. gpwardenctl recovery rotate (root) does the same on demand, for example after reading a password out to a user. If the automatic unlock no longer opens the volume (TPM measurements changed: clevis luks regen), rotation waits until it does. GPWarden judges a volume only after it has seen it unlocked automatically once (the journal shows each Clevis unlock).
802.1X (wired and Wi-Fi)Microsoft's Computer Configuration > Windows Settings > Security Settings > Wired Network (IEEE 802.3) Policies and Wireless Network (IEEE 802.11) Policies; the highest-precedence GPO's policy winsWired: the policy's 802.1X settings are added to every ethernet connection in NetworkManager, IP settings untouched; active connections are re-activated at once so they authenticate now, as Windows restarts authentication on a policy change. Enforce use of IEEE 802.1X off means a port without an authenticator still works, after Windows' wait (maxStart x startPeriod, 15 s by default); on: the port stays down until authenticated. Works with NPS as RADIUS server (network policies: Windows Groups = Domain Computers, NAS Port Type = Ethernet or Wireless - IEEE 802.11, Microsoft: Smart Card or other certificate; for users Windows Groups = Domain Users with Microsoft: Protected EAP (PEAP)). On a FIPS-mode computer PEAP-MSCHAPv2 is reported and not configured: MSCHAPv2 needs MD4 and DES, which FIPS forbids; use EAP-TLS. Wi-Fi: one connection per SSID (hidden, automatic, WPA2/WPA3-Enterprise or open). EAP-TLS with the computer's certificate (auto-enrolled, identity host/<fqdn>); PEAP-MSCHAPv2 for users as a connection per user made at sign-in (identity user@realm, password asked once and kept in the user's keyring); EAP-TLS for users the same way with the user's auto-enrolled certificate (no password; the only user method in FIPS mode). PEAP with Smart Card or other certificate inside (PEAP-TLS): the same certificates in PEAP's inner TLS, for the computer or the user. Use my smart card: the user's client certificate on their smart card (any PKCS#11 token: install opensc for readers and gnutls-utils), found at sign-in; GNOME asks for the PIN when connecting, as Windows does; NPS logs Microsoft: Smart Card or other certificate. NPS: allow Microsoft: Smart Card or other certificate in the users' network policy too. Server validation: Connect to these servers and the policy's trusted root CAs (from AD or the system trust). With validation on but neither a trusted root CA nor a server name selected, the network is not configured (any publicly trusted certificate would do; Windows prompts or fails there). A user who changes the trust settings of their own policy connection (CA, server names) gets the policy's back at the next refresh. Removed when the policy goes away.
Smart-card sign-inGPWarden > System > Allow smart card sign-in, or Microsoft's Security Options > Interactive logon: Require smart card; Interactive logon: Smart card removal behaviorThe NTAuth CAs from AD become SSSD's smart-card CA store (/etc/sssd/pki/sssd_auth_ca_db.pem, if absent or GPWarden's); /etc/sssd/conf.d/50-gpwarden-smartcard.conf turns on certificate sign-in and maps the certificate's UPN to the account, Smart Card Logon EKU required, as Windows does; authselect's with-smartcard (and with-smartcard-required, with-smartcard-lock-on-removal). Removal behavior Force Logoff signs the GNOME session out. Readers need opensc. Windows allows smart-card sign-in whenever a card is present; on RHEL it changes the sign-in stack, so a policy turns it on. Undone when no policy asks for it (only the features GPWarden enabled).
TimeNothing to configure: like a Windows domain member, GPWarden syncs the clock (chrony) from the domain controllers. Microsoft's System > Windows Time Service > Time Providers > Configure Windows NTP Client (NT5DS, NTP with its server list, AllSync, NoSync) and Enable Windows NTP Client apply as on Windows; GPWarden > System > Synchronize time with Group Policy = Disabled leaves chrony aloneSources in /etc/chrony.d/gpwarden.sources, the DC marked prefer; time sources already in /etc/chrony.conf stay. chrony ignores a source with more than 3 s root distance: the PDC emulator must sync from reliable NTP, as Microsoft recommends.
Local administrators (sudo)Preferences > Control Panel Settings > Local Users and Groups: "Administrators (built-in)", or Security Settings > Restricted Groups for AdministratorsMembers get sudo (all commands, with their own password) and are admins in GNOME's polkit prompts. See below.
GNOME settingsRegistry values under Software\Policies\GPWarden\dconf\<dconf path> (computer or user)Set and locked; users cannot override them. Example below.

Settings that only exist on Windows are listed by gpwardenctl result -v but have no effect, so nothing is silently half-applied.

Example: GNOME settings for all Linux desktops in an OU. Value names are the GSettings keys; REG_SZ values are GVariant text.

PowerShell
$k = "HKLM\Software\Policies\GPWarden\dconf\org\gnome\desktop\interface"
Set-GPRegistryValue -Name "Linux Desktop" -Key $k -ValueName clock-show-weekday -Type String -Value "true"
$k = "HKCU\Software\Policies\GPWarden\dconf\org\gnome\desktop\interface"     # per user
Set-GPRegistryValue -Name "Staff Desktop" -Key $k -ValueName clock-show-seconds -Type String -Value "true"

User preferences (Group Policy Preferences)

User Configuration > Preferences items apply to RHEL users as they do on Windows, with Create / Replace / Update / Delete, "Remove this item when it is no longer applied", "Apply once and do not reapply" and item-level targeting (user and computer filters: user, security group, OU, computer name, site, IP range, WMI, ...):

PreferenceOn RHEL / GNOME
Drive MapsA Files (Nautilus) bookmark "S: Label", mounted when the user's desktop session starts, with their Kerberos ticket. Paths on the domain namespace (\\example.com\share) are reached on the domain controller.
ShortcutsA launcher in the app grid (~/.local/share/applications): URLs, UNC paths (smb://) and Linux programs.
Environment~/.config/environment.d/60-gpwarden.conf; "Partial" appends to the variable (PATH). Takes effect at the next logon, as on Windows.
FilesCopied from the share with the user's ticket to the expanded path in the home folder.
FoldersCreated (or removed) in the home folder.
RegistryHKCU\Software\Policies\GPWarden\dconf\<path> values become the user's own GNOME settings (REG_SZ = GVariant text), which the user may change, unlike policy.

Paths use the usual variables (%UserProfile%, %DesktopDir%, %AppDataDir%, %UserName%, %ComputerName%, ...). Items for Windows locations (a drive letter path, HKLM, other registry keys) are skipped and listed as warnings in journalctl -u gpwardend. Preferences are applied at logon and in background refreshes, as the user; what needs the desktop session (drive mounts, dconf) is finished by an autostart entry when the session starts.

Computer preferences (Group Policy Preferences)

Computer Configuration > Preferences items apply with the same options (Create / Replace / Update / Delete, "Remove this item when it is no longer applied", "Apply once and do not reapply", item-level targeting). Without "Remove this item", a setting stays when its GPO no longer applies, as on Windows. Enter Linux names in GPMC: a systemd service name (cups), an absolute Linux path (/etc/app/app.ini, /usr/local/bin/backup.sh). Windows computers in the same OU report such items as errors in their event log, so link Linux-only items to a Linux OU or target them (item-level targeting, Operating System).

PreferenceOn RHEL
EnvironmentSystem variables for desktop sessions and systemd user services (/etc/environment.d/60-gpwarden.conf) and login shells (/etc/gpwarden/environment.sh, read by /etc/profile.d/gpwarden-environment.sh). "Partial" appends to a list (PATH; ; separates elements as in GPMC). %OTHER% references become ${OTHER}. Takes effect at the next logon, as on Windows. User variable items in Computer Configuration are reported, not applied.
Ini FilesThe property in the file, edited in place: comments, order and the file's owner, mode and SELinux label are kept. Delete with only a section removes the section; with no section, the file. Files GPWarden may write: those under /etc with the usual etc_t label (SELinux).
ServicesStartup: Automatic = systemctl enable, Manual = disable, Disabled = mask (cannot be started, as on Windows). Service action: start, stop, or restart (once per change of the item, not at every refresh). Recovery: "Restart the service" = Restart=on-failure with the restart delay; the next failure after the configured restarts reboots when GPMC says Restart the computer; written as a drop-in <unit>.d/90-gpwarden-recovery.conf. Log on as is reported, not applied. gpwardend's own service cannot be changed by policy.
Scheduled TasksScheduled Task (At least Windows 7) and Immediate Task (At least Windows 7): a gpwarden-task-<name>-<hash>.service per task, a .timer for its schedule. One time, daily, weekly (days of the week), monthly (days, "last day"), monthly on the first ... last weekday; Repeat task every (an interval that divides a day, or within the repetition window); At startup (with delay, from the next boot); At log on (any user or one account); On registration. "Start a program" actions in order. Run as: SYSTEM = root, LOCAL SERVICE / NETWORK SERVICE = a dynamic unprivileged user, a domain account = that user, BUILTIN\Users = the user who logs on (logon trigger). Settings: Stop the task if it runs longer than, Start only if on AC power, Run as soon as possible after a scheduled start is missed, Wake the computer to run this task, Enabled. An immediate task runs once per change of the item. Not available (reported in the RSoP): every n days or weeks, idle / event / session triggers, e-mail and message actions. A domain account needs no stored password on RHEL; Windows needs Log on as a batch job for it.

gpwardenctl result lists each item's outcome (for example task "Nightly cleanup" (gpwarden-task-nightly-cleanup-1a2b3c4d.service): 1 schedule(s)); systemctl list-timers 'gpwarden-task-*' shows the next runs.

Published applications (Software Installation)

Applications can also be offered to users the Windows way: published in GPMC under User Configuration > Policies > Software Settings > Software installation, as a .zap package (Windows Installer packages cannot install on RHEL). Users then install them themselves, like "Install a program from the network":

INI
; tmux.zap, next to the GPO or on any share readable by Domain Computers
[Application]
FriendlyName = "Terminal Multiplexer"
SetupCommand = "tmux"               ; a dnf package (also "dnf:@group"), or
; SetupCommand = "pkgs/tool-1.2.x86_64.rpm"   an RPM relative to the .zap, or \\server\share\tool.rpm
DisplayVersion = 3.3
Publisher = Contoso

In GPMC: New > Package, choose the .zap by its UNC path, Published. Optional: Uninstall this application when it falls out of the scope of management.

Allow them in computer policy. On Windows a .zap setup runs with the user's rights; on RHEL dnf installs as root. So the computer decides what its users may install: Computer Configuration > Policies > Administrative Templates > GPWarden (RHEL) > Software > Allow published applications lists the package names (tmux, libreoffice-*); Allow published RPM files from these folders lists the UNC folders RPM files may come from (\\fs1\Packages). Without that policy nothing published can be installed on the computer, and gpwardenctl software install says so. This keeps someone who may edit only a user GPO from installing arbitrary signed packages on every computer.

On the desktop, users open Install a Program from the Network (app grid; package gpwarden-desktop), as Windows users open it in Control Panel: each published program with its version, publisher and the GPO that publishes it, Install, and Remove for those installed; programs without a RHEL package are shown as not available for this computer. From a terminal:

Shell
gpwardenctl software list                      # what is published to me, and installed?
gpwardenctl software install Terminal Multiplexer
gpwardenctl software remove Terminal Multiplexer

Install on opening a file. With Auto-install this application by file extension activation (GPMC's default for a published package; extensions from the .zap's [ext] section, e.g. .pdf=), opening a file of such a type installs the program and opens the file with it, as on Windows. It applies only to file types no installed program opens, and only to programs named by package (not .rpm files), whose installed state GPWarden can see.

GPWarden installs for the user (as Windows Installer elevates managed applications). RPM files are fetched with the computer's credentials and must be signed by a key the computer trusts (rpm --import), as packages from repositories are. When the administrator removes the package (All Tasks > Remove > Immediately uninstall), or it falls out of scope with the uninstall option set, GPWarden removes it at the user's next logon, unless another user still needs it or it was on the computer before.

Local administrators

Grant admin rights the way you do for Windows: put accounts or groups in the built-in Administrators group from a GPO. The same GPO works for Windows 11 and RHEL in the same OU.

Text
Computer Configuration > Preferences > Control Panel Settings > Local Users and Groups
  New > Local Group: Action "Update", Group name "Administrators (built-in)"
  Add: EXAMPLE\Workstation Admins

On RHEL every member becomes an administrator:

  • sudo: /etc/sudoers.d/50-gpwarden-administrators grants ALL=(ALL) ALL, by numeric UID/GID from SSSD. Users authenticate with their own password, as with UAC. The file is checked with visudo before it replaces the previous one.
  • GNOME prompts (polkit): members are admin identities, next to wheel.

Behavior follows Windows:

  • Update adds and removes the listed members; "Delete all member users/groups" empties the group first. Replace acts as Update: Windows cannot delete and recreate a built-in group. Create and Delete have no effect: the group always exists and cannot be deleted.
  • Members added by a preference stay when the GPO stops applying, as on Windows, even with "Remove this item when it is no longer applied" (Windows cannot delete the built-in Administrators group, so that option has no effect here). To take rights away, change the item to Remove the member, or use Restricted Groups.
  • Restricted Groups (Administrators, "Members of this group") replaces the whole list on every refresh, after the preferences. When the setting is removed, the members from before it first applied come back, as on Windows. "This group is a member of: Administrators" on another group adds that group.
  • Item-level targeting works as on Windows (AND binds tighter than OR, NOT, collections) for: security group (the computer's groups), computer name (NetBIOS or DNS, */? wildcards), organizational unit (direct or inherited), site, IP address range, domain, WMI query (the same Linux facts as WMI filters) and operating system (a Windows version never matches RHEL). An item that uses any other filter (registry, file, user context, …) is skipped with a warning instead of guessed.
  • New rights take effect at the user's next logon, as on Windows (group membership is read at logon).
  • /etc/sudoers, wheel and local accounts are never changed; GPWarden only writes its own two files. With no members, both files are removed.

gpwardenctl result -v shows the members and which GPO did what; additions and removals are logged with the Windows Security event numbers 4732 and 4733.

Time-limited administrators. Use Active Directory's time-bound group membership (Windows Server 2016 forest level, Privileged Access Management Feature enabled): put a group such as Temporary Admins in Administrators as above, then

PowerShell
Add-ADGroupMember -Identity "Temporary Admins" -Members alice -MemberTimeToLive (New-TimeSpan -Hours 4)

GPWarden reads the remaining time of each time-bound member of the groups in Administrators at every refresh, and watches those groups with AD's change notifications, so a membership added between refreshes is known within seconds (the watch is renewed every 15 minutes; a DC that refuses notifications is asked every 5 minutes instead, and the log says so). When a membership runs out, GPWarden has SSSD forget that user's cached groups, so the right ends within seconds (sudo, and polkit prompts; a session already open keeps its groups until sign-out, as a Windows logon token does). AD leaves time-bound memberships out of tokenGroups, which SSSD uses by default, so in a forest with the feature GPWarden also has SSSD read groups from memberOf (/etc/sssd/conf.d/50-gpwarden-time-bound.conf, ldap_use_tokengroups = False). gpwardenctl result shows how many time-bound memberships there are and when the next one ends.

Elevated rights for specific commands, or for a limited time (sudo rules in AD)

For rights short of full administrator, use sudo rules stored in Active Directory, which SSSD reads: which users or groups may run which commands, as whom, on which computers, and from when until when. GPWarden adds no rule format of its own; it switches SSSD's support on with GPWarden > System > Use sudo rules from Active Directory (SSSD's sudo service added to the services list already configured, start and end times evaluated, and sudo asking SSSD after the computer's own sudoers files).

Once per forest, import the sudo schema extension (from the RHEL sudo package, /usr/share/doc/sudo/schema.ActiveDirectory), as a Schema Admin:

PowerShell
ldifde -i -f schema.ActiveDirectory -c "DC=X" "DC=example,DC=com" -k

Then create an OU for the rules, for example Sudoers; allow only the people who may grant elevated rights to create objects in it, and enter its distinguished name in the policy (Container holding the sudo rules, required). Rules are read only from there: otherwise anyone who may create objects anywhere in the domain (a delegated OU, for example) could give themselves root. In the lab, a rule created in CN=Users granted root when SSSD read the whole domain and was ignored with the container. Without a container (or with a value that is not a distinguished name) GPWarden does not switch sudo rules on, and gpwardenctl result says why. Create the rules there:

PowerShell
$ou = "OU=Sudoers,DC=example,DC=com"
# Help desk may restart the print service, on every Linux computer:
New-ADObject -Name "helpdesk-cups" -Type sudoRole -Path $ou -OtherAttributes @{
  sudoUser = "%helpdesk"; sudoHost = "ALL"; sudoCommand = "/usr/bin/systemctl restart cups"; sudoRunAsUser = "root" }
# Alice may read the logs until Friday 17:00 UTC:
New-ADObject -Name "alice-logs-until-friday" -Type sudoRole -Path $ou -OtherAttributes @{
  sudoUser = "alice"; sudoHost = "ALL"; sudoCommand = "/usr/bin/journalctl"; sudoRunAsUser = "root"
  sudoNotBefore = (Get-Date).ToUniversalTime(); sudoNotAfter = [datetime]"2026-11-27T17:00:00Z" }

sudoUser takes user names and %group; sudoCommand a full path, optionally with arguments (* as wildcard); sudoOption sudo options (!authenticate for no password prompt). Users authenticate with their own password, as with UAC. A rule outside its start and end time is ignored. On the workstation, sudo -l shows what the user may run. Changes in AD reach the workstation within SSSD's refresh interval for sudo rules (ldap_sudo_smart_refresh_interval, 15 minutes by default). Verified on RHEL 9 (FIPS) and RHEL 10: a rule's end time took effect within seconds.

Older recovery passwords in AD

Recovery passwords escrowed by GPWarden 0.1.0-10 and earlier are not removed from AD when they are rotated (the computer cannot find them; newer releases record where each one is). A Domain Admin removes them by keeping the newest recovery password per computer and volume (check with -WhatIf first):

PowerShell
Get-ADComputer -Filter * -SearchBase "OU=Linux,OU=Workstations,DC=example,DC=com" | ForEach-Object {
  Get-ADObject -SearchBase $_.DistinguishedName -Filter "objectClass -eq 'msFVE-RecoveryInformation'" -Properties whenCreated, 'msFVE-VolumeGuid' |
    Group-Object { [guid][byte[]]$_.'msFVE-VolumeGuid' } |
    ForEach-Object { $_.Group | Sort-Object whenCreated -Descending | Select-Object -Skip 1 } |
    Remove-ADObject -WhatIf
}

6. Windows LAPS

Use the same LAPS GPO settings as for Windows (Computer Configuration > Administrative Templates > System > LAPS), linked to the Linux OU:

  • Configure password backup directory: Active Directory.
  • Name of administrator account to manage: leave empty to manage root, or name a dedicated local account (recommended; create it first, e.g. useradd -m -G wheel lapsadmin). GPWarden, like Windows, does not create it.
  • Enable password encryption (default on), password age, complexity (1–8, including passphrases), history, post-authentication actions: as on Windows.

Retrieve and rotate with Microsoft's tools:

PowerShell
Get-LapsADPassword -Identity WS042 -AsPlainText
Reset-LapsPassword                                   # on Windows only; for Linux:
Set-LapsADPasswordExpirationTime -Identity WS042     # rotates at the next cycle (hourly, or gpwardenctl update)

Post-authentication actions apply when someone signs in to the managed account with its password (console, GDM, su, SSH with password). They do not apply to SSH keys or sudo, which don't use that password. After the grace period, GPWarden resets the password and, depending on the setting, signs the account out (with a two-minute warning on its terminals) or restarts the machine. Signing out ends every interactive session of the account, as on Windows, including key-based SSH sessions. Keep automation off the LAPS account.

FIPS mode

GPWarden runs on RHEL hosts in FIPS mode (fips=1) with RHEL's AD subpolicy, which allows the AES-SHA1 Kerberos encryption types that Active Directory uses:

Shell
# RHEL 9: switch an installed system
fips-mode-setup --enable
update-crypto-policies --set FIPS:AD-SUPPORT
reboot

# RHEL 10: FIPS mode is chosen at installation (boot option fips=1, or the
# installer started with fips=1 from PXE or a kickstart setup); then
update-crypto-policies --set FIPS:AD-SUPPORT

Encrypted LAPS needs an ECDH KDS root key. The default KDS root key uses finite-field Diffie-Hellman with a group that RHEL's FIPS module refuses; GPWarden then logs "the KDS root key uses finite-field Diffie-Hellman, which this host refuses in FIPS mode" and keeps the current password. Create an ECDH key once (the newest root key is used for new passwords; older passwords stay readable):

PowerShell
Set-KdsConfiguration -SecretAgreementAlgorithm ECDH_P384 -SecretAgreementPublicKeyLength 384 `
    -SecretAgreementPrivateKeyLength 384 -SecretAgreementParameters $null
Add-KdsRootKey -EffectiveImmediately          # usable after 10 h, as any KDS root key

Windows clients and gMSAs use the new key as well; it is the stronger choice regardless of FIPS. Note also that RHEL in FIPS mode refuses Ed25519 SSH keys: give administrators ECDSA or RSA keys before switching a host to FIPS.

7. Scenarios

Baseline for all Linux workstations. Link one GPO to the Linux OU with:

  • the logon banner;
  • a 10-minute inactivity limit;
  • the removable-storage deny;
  • LAPS (encrypted, 30 days).

Most organizations already have a Windows workstation baseline. Where its settings have the same meaning, linking it to the Linux OU applies them unchanged.

Pilot group. Create a "Linux Pilot" group and add pilot computers. On the pilot GPO, use security filtering: remove Authenticated Users from "Apply group policy", add the group, and keep read for Authenticated Users. GPWarden evaluates the DACL as Windows does, reading group membership live at each refresh. Unlike Windows, no reboot is needed after changing a computer's groups.

Kiosk or lab room. Link the user settings for kiosk users to the kiosk OU and enable "Configure user Group Policy loopback processing mode": Replace (only the kiosk's settings) or Merge (the user's, then the kiosk's on top). This works exactly like Windows; verify with Group Policy Modeling.

Same OU, different OS. To keep a GPO for Windows only, give it a WMI filter. SELECT * FROM Win32_OperatingSystem WHERE OSType = 18 matches Windows. Linux reports OSType = 36, ProductType = 1 and Version = linux-<VERSION_ID>, so ... WHERE Version LIKE "linux-10%" targets RHEL 10.

Strict startup. For machines that must have current policy before anyone signs in, enable "Always wait for the network at computer startup and logon". From the next boot, logins wait until computer policy is applied (at most 120 seconds), and user policy is applied before the desktop starts.

8. Troubleshooting

SymptomCheck
gpwardenctl update fails: "no domain controller reachable" (event 1055)DNS: host -t SRV _ldap._tcp.dc._msdcs.example.com; ports above; adcli info example.com
Denials with SELinux Enforcingausearch -m avc -c gpwardend; gpwarden-selinux must be installed (rpm -q gpwarden-selinux) and files labeled (restorecon -R /var/lib/gpwarden /run/gpwarden)
Kerberos errors, "clock skew"chronyc tracking; the host keytab: klist -k /etc/krb5.keytab
A GPO is missing from gpwardenctl resultgpwardenctl result lists filtered GPOs with the reason ("Denied (Security)", "Denied (WMI Filter)", "Disabled (GPO)"). As on Windows, disabled links and GPOs without settings for that side are left out.
Setting not appliedgpwardenctl result -v shows every registry setting and its winning GPO; journalctl -u gpwardend shows manager warnings
User settings missingThe user must have a Kerberos ticket (SSSD, KCM). Check gpwardenctl result as that user and journalctl -u gpwardend -g "user policy".
LAPS failsjournalctl -u gpwardend -g LAPS. Common causes: no KDS root key, missing Set-LapsADComputerSelfPermission, managed account doesn't exist, encryption principal not found.

Events have stable journald message IDs and the matching Windows event IDs, for SIEM rules: see EVENTS.md. For example, journalctl -u gpwardend GPWARDEN_WINDOWS_EVENT_ID=1055 lists "DC unreachable" refreshes.

Questions about this page? Ask in the chat or write to support@gpwarden.com.