(English first — deutsche Version weiter unten / German version below.)
A reusable Group Policy template toolkit for linuxmuster.net 7.x (Ubuntu 24.04 + Samba 4.19 Active Directory DC). It creates, links and permissions Windows 11 Group Policies directly from the Linux server – without the Windows GPMC – and is multi-school capable (several schools per server, and identical rollout across many customer servers).
Status: complete & verified. 36 policy packs, idempotent, with
--dry-run. Tested end-to-end against a real linuxmuster 7.3 instance: create → idempotent re-run (0 changes) →sysvolcheck/aclcheck/dbcheckclean → fully removable.
Command name: the examples below use
lmn-gpo(the installed Debian package — the recommended way). From a source checkout the command is./lmn-gpo-cliinstead — same commands, same behaviour.
- What the toolkit does · Concept
- Features (36 packs)
- Guide: Installation → Quick start → Usage → Configuration
- Setting up features: KMS · Branding · Firefox · Proxy · Wi-Fi · Veyon · Student lockdown · Boot order · Time sync · Fixed drive letters · Point and Print · Office trusted locations · edulution trusted site
- Rolling out to clients · Checking on the client · Updating the toolkit · Troubleshooting
- Requirements · Directory layout
For a Windows client to apply a GPO set by the Samba DC, three things must be consistent:
the Registry.pol (PReg format), the version in GPT.INI and in the AD attribute
versionNumber, plus the matching Client-Side-Extension GUID in
gPCMachineExtensionNames. samba-tool gpo load does exactly that atomically for
registry-based policies; for security settings (user rights, restricted groups), local
admins (GPP) and startup/shutdown scripts the toolkit writes the files itself and
registers the corresponding CSE GUID. Details: docs/.
- Declarative YAML catalog (
catalog/): one package per concern, with scope (global / per school) and target (computer/user), optionally filtered exclusively to device or role groups. lmn-gpoCLI with an interactive setup assistant, idempotent (run as often as you like),--dry-runeverywhere, persistent parameters insite.yaml.- Dynamic detection: realm, base DN, server IP/subnet, schools and their prefixes,
admin groups, the
d_nopxedevice group, role groups and rooms are read live from AD – nothing is hardcoded todefault-school. - Gentle: never touches
sophomorix:*or default GPOs, checks ACLs (aclcheck/sysvolcheck) after every change and reconciles sysvol permissions viasysvolreset.
All 36 packs in catalog/. Always active (no extra parameter needed):
| Package | Effect |
|---|---|
| Privacy / telemetry | telemetry, advertising ID, activity history, location, input collection, "Find my device", AI data analysis off |
| Block Microsoft accounts | no MS-account sign-in, only local/domain accounts |
| Disable OneDrive | OneDrive autostart & file sync off |
| First-run / OOBE / consumer | "finish setup", Spotlight, Cortana, consumer features, Edge/first-run assistants off |
| Windows Update split | off for LINBO machines, on for non-LINBO devices (d_nopxe) |
| Power | no standby, display never switches off (display_off_seconds, 0 = never) — relaxed for teacher notebooks |
| Screen lock | lock after 30 min idle — relaxed for teacher notebooks |
| Hibernation off | hibernate disabled — except d_nopxe |
| Wake-on-LAN + Fast Startup off | WoL armed (startup script), HiberbootEnabled=0 |
| Remote management | RDP on, firewall exceptions (RDP/SMB/RPC/ICMP), remote-shutdown right |
| Global admins | global-admins as local admins + RDP everywhere |
| School admins | <school>-admins as local admins + RDP per school |
| Block mobile hotspot | Windows hotspot / ICS blocked on all machines (toggle greyed out) — no exception |
| Student lockdown | students (role-student) cannot change sensitive settings — above all cannot remove the proxy (+ Connections tab/PAC & Registry Editor locked); teachers/admins unrestricted (loopback + filter) |
| Time synchronisation (W32Time) | clients sync from the server via explicit NTP (ntp_mode, default); also corrects large offsets (dead CMOS battery); Secure Time Seeding off (no clock jumps from TLS data); nt5ds available where MS-SNTP signing works |
| Office: network drives trusted | H:, linuxmuster's default drives (and drives.yaml) become Office trusted locations, Access only by default — macros there run without a prompt; office_trusted_enabled: false switches it off. Details |
Optional (enabled via site.yaml / the setup assistant):
| Package | Enabled by | Effect |
|---|---|---|
| KMS activation (Windows) | kmshost |
activate Windows against the KMS host (startup script) |
| KMS activation (Office) | kms_office_host (or kmshost) |
activate volume-licensed Office — its own registry key, own startup script |
| Branding per school | wallpaper file | desktop and logon background per school (from NETLOGON) |
| Veyon | veyon_binddn + password |
classroom management, LDAP directory, roaming, teachers only (role-teacher + all-teachers); bandwidth-tuned monitoring |
| Firefox hardening | firefox_enabled |
first-run off, clean new-tab (search + shortcuts, no ads) |
| Firefox homepage | firefox_enabled and firefox_homepage (or firefox_homepage_by_school) |
global default or per school, optionally locked — a URL without firefox_enabled: true is ignored, apply says so |
| Role-based proxy | proxy_enabled + host |
address follows the device (school), port follows the user (teacher/student/staff), roaming-proof; all browsers on the system proxy; proxy host as Intranet zone (SSO) |
| Wi-Fi PSK (students) | wlan_psk_networks |
any number of PSK networks as machine profiles → connect before login, roaming across sites; not on teacher notebooks |
| Wi-Fi Enterprise (teachers) | wlan_enterprise_ssid + CA cert |
WPA2-Enterprise/PEAP with RADIUS, CA cert installed; teachers only (RADIUS enforces the group), exclusive to d_nopxe |
| UEFI boot order PXE first | bootorder_pxe_first: true |
scheduled task (SYSTEM/highest) forces network/PXE to the top (→ LINBO) if Windows pushes itself forward; robust pattern detection, idempotent. Hardware-dependent — test on 1 machine first |
| Allow Point and Print | pointandprint_enabled: true |
lets students auto-install printer drivers from your print server(s) — the printers linuxmuster/sophomorix already connects — which patched Windows 11 otherwise blocks (PrintNightmare). Trusts only your servers (auto-detected \\SERVER + FQDN + IP, plus printservers_extra) |
| Fixed drive letters | drives_enabled: true + drives.yaml |
your own drive letters (letter, UNC path, label, groups) at every school, H: from the home directory, linuxmuster's default drives K: P: S: T: R: switched off for all or for groups; one user GPO linked enforced, so it wins over the school GPOs — also for a teacher at another school's computer. Details |
| edulution as a trusted site | edulution_host (on by default once a host is set) |
https://<host> in the Windows Trusted sites zone: Edge saves downloads from it without a Mark of the Web, Access shows its normal security notice instead of the hard block; teacher notebooks included. Side effects: Windows trusts the whole site, and users' own zone lists stop counting. Details |
On the linuxmuster server (Samba AD DC) as root. Two ways to install — pick one.
Download the latest release asset and install it. The command is then lmn-gpo
(/usr/bin/lmn-gpo), usable from any directory:
# download the latest release .deb (via the GitHub CLI):
gh release download --repo faircomp/linuxmuster-gpo-template --pattern '*.deb'
# — or download lmn-gpo_*_all.deb by hand from the releases page:
# https://github.com/faircomp/linuxmuster-gpo-template/releases/latest
# install on the linuxmuster server:
apt install ./lmn-gpo_*_all.deb # or: dpkg -i lmn-gpo_*_all.deb
lmn-gpo doctor # environment self-check – must be greenClone the repo and run it in place; here the command stays ./lmn-gpo-cli (from the repo
folder, not lmn-gpo):
cd /opt
git clone https://github.com/faircomp/linuxmuster-gpo-template.git
cd linuxmuster-gpo-template
./lmn-gpo-cli doctor # environment self-check – must be greenYou can also build the .deb yourself from the checkout (needs make, dpkg-dev,
debhelper and dh-python, no root) and install it — the command is then lmn-gpo as above:
make deb # = dpkg-buildpackage -us -uc -tc -I -I".github"
apt install ../lmn-gpo_*_all.deb # or: dpkg -i ../lmn-gpo_*_all.debdpkg-buildpackage writes the .deb, .changes, .buildinfo, .dsc and the source
tarball to the directory above the checkout.
The version comes from the top entry of debian/changelog (lmn-gpo --version shows it).
No extra packages are required (see Requirements – Python, the samba
bindings and samba-tool come with linuxmuster).
The package installs the CLI to /usr/bin/lmn-gpo and the catalog/scripts to
/usr/share/lmn-gpo/, and reads the same config /etc/linuxmuster/lmn-gpo/site.yaml. An
existing site.yaml from a source checkout is migrated automatically on install and is
never removed on upgrade/remove — no settings are lost. It installs entirely inside its
own namespace (lmn-gpo) and touches no linuxmuster files.
Important – where does
site.yamllive? The assistant saves your settings by default to/etc/linuxmuster/lmn-gpo/site.yaml— deliberately outside the repo. Only there does it survive everygit pull/git clean. Keep it there and always apply from there, then updates can never lose your configuration (including Wi-Fi passwords).
lmn-gpo doctor # 1. check the environment
lmn-gpo setup # 2. configure interactively (asks only the decisions)
# -> saves /etc/linuxmuster/lmn-gpo/site.yaml, shows dry-run
lmn-gpo apply --yes # 3. apply (uses the saved site.yaml automatically)Then on a client gpupdate /force + reboot, and check with
lmn-gpo-check.ps1.
All commands: lmn-gpo <command>. Everywhere: read-only commands change nothing,
writing ones need --yes (or the prompt in the assistant).
| Command | Purpose | Options |
|---|---|---|
doctor |
environment self-check (realm, groups, sysvol, secret, security-filter groups) — read-only | |
env |
print the detected environment (schools, groups, SIDs) | --json machine-readable |
list |
existing GPOs + their links | --mine only the toolkit's LMN-* GPOs |
setup |
interactive assistant → writes site.yaml, optionally applies right away |
--config <file> |
apply |
apply the catalog from a site.yaml (non-interactive) |
--config, --school (repeatable), --pack (repeatable), --dry-run, --yes, --defaults |
remove |
remove the toolkit's LMN-* GPOs again |
--school (repeatable), --pack (repeatable), --dry-run, --yes |
selftest --yes |
non-destructive end-to-end test of the engine (throwaway GPO, linked briefly to the first detected school's Devices OU) | --dry-run |
veyon-encrypt-password |
encrypt the Veyon bind password (hex for site.yaml) |
--password (otherwise prompted) |
Global: lmn-gpo --no-color <command> prints [ok]/[warn]/[FAIL] instead of colored
glyphs (automatic when stdout is not a terminal, e.g. via ssh or in a log). apply --defaults
runs without an answers file — every optional pack then counts as disabled, so apply
removes their GPOs; without --defaults a missing or empty site.yaml is refused.
lmn-gpo setupThe assistant detects the environment itself and only asks the decisions (schools,
packages, firewall source, teacher-notebook group, KMS, wallpaper, Veyon, Firefox, proxy,
Wi-Fi, boot order). Each question shows its default in […] — Enter = keep. On a
re-run all previous answers are pre-filled (including Wi-Fi SSIDs + passwords). At the
end: dry-run preview, save, optionally apply.
# preview without changing anything (always recommended first):
lmn-gpo apply --config /etc/linuxmuster/lmn-gpo/site.yaml --dry-run
# actually apply:
lmn-gpo apply --config /etc/linuxmuster/lmn-gpo/site.yaml --yes
# only the per-school packs of one school (repeat --school for several):
lmn-gpo apply --school schule1 --pack 07-admins-schule --pack 12-proxy-student-schule --yes
# only specific global packs (they reach every school regardless of --school):
lmn-gpo apply --pack 02-updates --pack 17-ntp-zeit --yesWithout --config, apply/setup use /etc/linuxmuster/lmn-gpo/site.yaml automatically.
--school narrows the per-school packs (scope: school, all *-schule) to the named
schools. Global packs are linked at OU=SCHOOLS and reach every school; --school does
not limit them. --pack takes catalog IDs (ls /usr/share/lmn-gpo/catalog).
Every pack is accounted for in the output: an optional pack whose feature is not enabled is
listed with skipped: <which site.yaml key is missing>, a pack whose exclusion group does not
exist in its scope with held back (see Checking the prerequisites).
Idempotent: run apply as often as you like – a second run creates no new GPOs,
rewrites no registry values and bumps no versions; only real deviations are corrected.
lmn-gpo remove --dry-run # shows what would be removed
lmn-gpo remove --yes # removes ALL LMN-* GPOs (default/sophomorix GPOs stay)
lmn-gpo remove --school schule1 --yes # only schule1's per-school GPOs (LMN-*-schule1-*)
lmn-gpo remove --pack 12-proxy-student-schule --yes # one pack, in every school
lmn-gpo remove --school schule1 --pack 07-admins-schule --yes # one pack, one school--school follows the same rule as apply --school: it selects the per-school GPOs of the
named schools and never touches global GPOs (LMN-*-GLOBAL-*), which every school shares. To
remove a global pack use --pack <id> without --school. An unknown school name is refused.
What remove cannot take back. Everything the packs write under one of the four
…\Policies\… branches is withdrawn by Windows' registry CSE at the next gpupdate/logon —
GPO gone, value gone. Values outside those branches tattoo: they stay on the client
forever. In this catalog that is the role proxy
(HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings: ProxyEnable,
ProxyServer, ProxyOverride — measured on Windows 11 after a full remove) and the KMS host.
Clear them per profile / per machine:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f
slmgr.vbs /ckms :: Windows KMS host
cscript ospp.vbs /remhst :: Office KMS hostFor a profile nobody is logged into: reg load HKU\tmp C:\Users\<user>\NTUSER.DAT, delete the
values under HKU\tmp\…, then reg unload HKU\tmp.
The assistant creates the file; you can also maintain it by hand and reuse it per customer. Full reference:
schools: null # null = all detected schools, otherwise [schule1, schule2]
packs: null # null = whole catalog, otherwise a list of pack IDs
fwsource: serverip # firewall source for remote mgmt: serverip | subnet | <IP/CIDR>
teachernb: nopxe # teacher-notebook group (excluded from power/lock/proxy/PSK Wi-Fi):
# nopxe = the school's d_nopxe device group | <CN> = a group of that
# name in every school | skip = there are NO teacher notebooks (no exclusion)
kmshost: "kms.school.de" # empty = no KMS (Windows)
kms_port: "1688" # Windows KMS port
kms_office_host: "" # empty = use kmshost; set only for a separate Office KMS
kms_office_port: "1688" # Office KMS port
wallpaper_dir: "" # empty = repo wallpapers/ (file: <school>.jpg, fallback default.jpg)
firefox_enabled: true
firefox_homepage: "https://start.school.de"
firefox_homepage_locked: true
firefox_homepage_by_school: { schule1: "https://schule1.school.de" }
proxy_enabled: true
proxy_host: "proxy.school.de"
proxy_host_by_school: { schule2: "proxy-schule2.school.de" }
proxy_port_by_role: { teacher: 3128, student: 3129, staff: 3130 }
proxy_exceptions: "" # empty = sensible default (<local> + *.<realm> + private nets)
veyon_binddn: "CN=global-veyon,OU=Management,OU=GLOBAL,DC=..."
veyon_bindpw_hex: "…" # via lmn-gpo veyon-encrypt-password
wlan_psk_networks: # any number — one entry per site
- { ssid: "SCHULE1-LINBO", psk: "…" }
- { ssid: "SCHULE2-LINBO", psk: "…" }
wlan_enterprise_ssid: "Teacher-WiFi" # empty = no enterprise Wi-Fi
wlan_enterprise_servernames: "radius.school.de"
wlan_enterprise_ca_cert: "/path/to/radius-ca.pem"
bootorder_pxe_first: false # true = force UEFI boot order to network/PXE first (opt-in!)
display_off_seconds: 0 # switch the display off after N s; 0 = never (screen still LOCKS, see 04)
ntp_mode: ntp # time sync: ntp (explicit server, default) | nt5ds (signed, needs working ntp_signd)
pointandprint_enabled: false # true = allow students to install printer drivers from the print server(s) (opt-in)
printservers_extra: [] # extra/external print-server FQDNs to also trust (the local server is auto-detected)
drives_enabled: false # true = fixed drive letters from drives_file (pack 20-drives, opt-in)
drives_file: "" # "" = /etc/linuxmuster/lmn-gpo/drives.yaml (absolute path)
office_trusted_enabled: true # network drives as Office trusted locations (pack 21, ON by default)
office_trusted_apps: [access] # any of access, excel, word, powerpoint
office_trusted_roles: all # all | a list of teacher, student, staff
office_trusted_forms: [unc, letter] # UNC path + drive letter (default); add dfs for the DFS target
edulution_trusted_enabled: true # edulution in the Trusted sites zone (pack 22, ON by default)
edulution_host: "" # e.g. edulution.school.de; "" = pack skipped
edulution_host_by_school: {} # per-school override { schule2: "edu.schule2.de" }
site.yamlcontains secrets (Wi-Fi PSKs, encrypted bind password) and is in.gitignore— do not commit it. Best kept under/etc/linuxmuster/lmn-gpo/(outside the repo).
The always-active packages need no configuration. For the optional ones here are
the short guides (key in site.yaml, then apply).
kmshost: "kms.school.de" # Windows
kms_office_host: "" # Office — empty = use the same host as Windows
kms_port: "1688" # optional
kms_office_port: "1688" # optionalSets the KMS host and activates Windows via a startup script (slmgr /ato).
Office needs its own entry. Windows and Office are separate products with separate registry keys — the Windows setting does not activate Office:
| Registry key (HKLM) | |
|---|---|
| Windows | SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform |
| Office | Software\Microsoft\OfficeSoftwareProtectionPlatform |
Since one KMS server usually activates both, kms_office_host defaults to kmshost when
left empty; set it only if Office is served by a different host. The wizard asks for both
and accepts either host or host:port.
Covers volume-licensed Office LTSC 2024 / LTSC 2021 / 2019 / 2016 (MSI and Click-to-Run, incl. Project and Visio). Volume Office ships its product key (GVLK) preinstalled, so nothing else is needed. Microsoft 365 Apps (subscription) is not KMS-activated at all and is skipped automatically. There is no ADMX policy for this — the official Office administrative templates contain no KMS setting, so the registry values are the only Group Policy route.
Two operational notes that cause most "it doesn't activate" cases:
- Counts differ: Office activates once the KMS host has counted ≥ 5 clients, Windows needs ≥ 25.
- The values tattoo. Both keys live outside the four
…\Policies\…branches, so they are not withdrawn from a client when the GPO stops applying. Clearingkms_office_hostremoves the GPO on the server (see below); to clear a client runospp.vbs /remhst(Office) orslmgr.vbs /ckms(Windows) there.
Emptying a setting now actually takes effect: a package whose precondition is gone has its GPO unlinked and deleted on the next
apply, instead of silently continuing to push the old value.
Put the images as wallpapers/<school>.jpg (fallback wallpapers/default.jpg), or set
wallpaper_dir to your own directory. The toolkit copies them to NETLOGON and sets the
desktop and logon background per school. (The images themselves are not in the repo.)
firefox_enabled: true
firefox_homepage: "https://start.school.de" # optional
firefox_homepage_locked: true # optional, locks the homepage
firefox_homepage_by_school: { schule1: "https://schule1.school.de" } # optional, per schoolFirst-run/import assistants off, clean new-tab page (search + shortcuts, no ads), optional
locked homepage. firefox_enabled: true switches both Firefox packs on; the homepage pack
(11-firefox-homepage-schule) additionally needs a URL. A URL without firefox_enabled is
ignored — apply prints skipped: firefox_enabled is not true (the configured homepage … is ignored) for it.
proxy_enabled: true
proxy_host: "proxy.school.de"
proxy_host_by_school: { schule2: "proxy-schule2.school.de" } # optional
proxy_port_by_role: { teacher: 3128, student: 3129, staff: 3130 }Address follows the device (proxy host per school, via loopback), port follows the
user (teacher/student/staff per port, filtered exclusively to role-*) — roaming-ready.
Edge, Chrome and Firefox are set to the Windows system proxy; the proxy host is placed in
the Intranet zone for automatic SSO. The student lockdown prevents
students from removing the proxy.
Intranet zone for the proxy (
12-proxy-zone-schule), fixed in 7.3.8. Windows applies the Site to Zone Assignment List only through the client-side extension Internet Explorer Zonemapping. Up to 7.3.7 the GPO did not register it: the value reached the registry, the proxy host stayed in the Internet zone (measured on Windows 11). From 7.3.8applyregisters it and bumps the GPO version, also on existing GPOs; after the nextapplyand a policy refresh the proxy really is in the Local intranet zone. Side effect (measured on Windows 11): while a computer Site to Zone Assignment List is in effect, Windows uses only the sites from the GPO. A site a user had put into Trusted sites (Internet Options › Security › Sites) fell from zone 2 to the Internet zone as soon as the GPO's list took effect; the user's entry stays in the registry and is ignored. According to Microsoft the same holds for sites set locally on the machine, and users cannot add sites. Details:docs/RESEARCH.mdsection 10.
Teacher notebooks (teachernb, by default the d_nopxe device group) are excluded from
all proxy packages. They leave the school network, where the school proxy is unreachable —
and because the proxy lands in the real WinINET key (not under …\Policies\…) it tattoos,
so it would stay configured off-site and cut the notebook off from the internet.
If those notebooks already carry a proxy from an earlier rollout, removing the policy does not clear it. Reset it once per affected profile, e.g.
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f.
12-proxy-student-schule,12-proxy-teacher-schuleand12-proxy-staff-schuleare linked toOU=Devices,OU=<school>— that is exactly how the address can follow the device while the port follows the user's role. ButOU=Devicesis a sibling ofOU=Students/OU=Teachers, never a parent of a user object, so their HKCU settings reach a user only through loopback processing. A pack that switches loopback on must therefore be applied to the same machines:12-proxy-base(it comes withproxy_enabled: true) or15-lockdown-base.This matters when you pin
packs:insite.yaml: a list with only the per-school proxy packs produces GPOs that are created, linked and filtered correctly — and reach nobody. Since 7.3.2applyanddoctorsay so ("Loopback prerequisite"); before that they reported success. On the client, loopback is visible asHKLM\SOFTWARE\Policies\Microsoft\Windows\System!UserPolicyMode = 0x1(Merge).
Export the RADIUS EAP CA on the server and point the toolkit at it — everything the manual click-through would do is then applied by the GPO:
lmnradius ca export --out /etc/linuxmuster/lmn-gpo/eap-ca.pemwlan_enterprise_networks:
- ssid: "MSG-LEHRER"
servernames: "radius.evsvbz.org"
ca_cert: "/etc/linuxmuster/lmn-gpo/eap-ca-msg.pem"
- ssid: "GSG-LEHRER"
servernames: "radius-gsg.evsvbz.org"
ca_cert: "/etc/linuxmuster/lmn-gpo/eap-ca-gsg.pem"One entry per site, each with its own RADIUS CA (sites sharing a RADIUS just reference the
same file). Order is the connection preference. Because the pack is scope: global and
filtered to @teachernb, every teacher notebook receives all of these profiles and all of
these CAs — so a teacher roaming to another school connects there too. The older single-key
form (wlan_enterprise_ssid / _servernames / _ca_cert) still works and is folded into a
one-element list.
lmn-gpo apply --pack 13-wlan-enterprise --yes| Manual step | What the pack does |
|---|---|
| Install CA in Local Computer → Trusted Root | certutil -addstore -f Root, run as SYSTEM = machine store |
| Tick only that one root CA | TrustedRootCA=<SHA-1> pins exactly this certificate |
| Enter the server name | ServerNames |
| "Prompt for new servers" off | DisableUserPromptForServerValidation=true |
| SSO tick | singleSignOn / preLogon |
apply prints the certificate it pins (RADIUS CA pinned: subject=... SHA1 ...) — check that
it really is the EAP CA. A wrong file used to be accepted silently and produced a thumbprint
over garbage; the client then refuses to connect with no prompt at all, because prompting
is disabled by design. That is now a hard error instead.
The teacher Wi-Fi cannot come up before login, and no setting changes that. It authenticates the user (
authMode=user), and before login there is no user.preLogonmeans the 802.1X handshake runs during the Windows logon with the credentials just typed — not that the link is already up at the logon screen. Consequently the very first teacher logon on a notebook needs cable or another network once. Only machine authentication would connect earlier, and that requires a RADIUS policy for domain computers.
How the two packages split.
13-wlan-pskdeploys the PSK networks as all-user (machine) profiles, so LINBO/PXE machines associate before anyone logs in. Delivery is a self-healing scheduled task (LMN-GPO-WlanProfiles, boot + every 15 min + logon), not a one-shot at boot:netshneeds a wireless interface, the profile store lives per interface insideWlanSvc, andWlanSvcis trigger-started -- so a plain boot-time import silently does nothing when the adapter is not up yet. The task also startsWlanSvc, re-enables a disabled adapter and sets the connection order. Log:%SystemRoot%\Temp\lmn-gpo-wlan.log. The order ofwlan_psk_networksis the roaming preference (first = priority 1).13-wlan-enterpriseis user-authenticated (PEAP + SSOpreLogon), so teacher laptops connect at login, not before. Both exclusions followteachernb(by default thed_nopxedevice group).The student PSK is not a secret from your students. It sits in cleartext in the profile XML inside the startup script in sysvol.
filter_deny_read: ['@role-student']denies students read on the GPO object, butsamba-tool ntacl sysvolresetwrites a fixed ACL template in which Authenticated Users keep read on the file — verified on a live DC. If that is unacceptable, pre-stage the profile in the LINBO image or move the student network to WPA2-Enterprise.
Multiple student Wi-Fis (e.g. one per site) are simply multiple entries in
wlan_psk_networks:
wlan_psk_networks:
- { ssid: "SCHULE1-LINBO", psk: "PSK-for-SCHULE1" }
- { ssid: "SCHULE2-LINBO", psk: "PSK-for-SCHULE2" }The package 13-wlan-psk is deliberately global: all PSK profiles land as machine
profiles (connectionMode auto, connect before login) on every student device — except
teacher notebooks (d_nopxe). This makes a notebook roam automatically: at each site it
connects to the SSID in range. Effective after a client reboot.
The price of roaming: every device carries all PSKs in its local profile store. Strict per-school isolation and roaming are mutually exclusive.
Teacher Wi-Fi (WPA2-Enterprise):
wlan_enterprise_ssid: "Teacher-WiFi"
wlan_enterprise_servernames: "radius.school.de" # name(s) in the RADIUS server certificate
wlan_enterprise_ca_cert: "/path/to/radius-ca.pem" # CA cert is installed on the clientPEAP-MSCHAPv2 with user auth + SSO; teachers only (RADIUS enforces the group), exclusive
to d_nopxe. Note: the very first teacher login on a notebook needs a wired/other network
once (pure user auth), after that Wi-Fi SSO.
Entirely via registry GPO (no config.json, file-less LDAP directory), multi-school capable
with roaming: BaseDN = domain root, ComputerTree per school (room list stays per-school),
groups/users global — so a teacher may open the Master at any school.
Setup:
lmn-gpo veyon-encrypt-password # encrypt the bind password -> copy the hexveyon_binddn: "CN=global-veyon,OU=Management,OU=GLOBAL,DC=..."
veyon_bindpw_hex: "<hex>"- Access for teachers only: authorises
all-teachersandrole-teacheras BaseDN-relative DNs (CN=role-teacher,OU=Groups,OU=GLOBAL, without,DC=…), because Veyon compares that way internally;QueryNestedUserGroups=truealso resolves nested membership. A student is in neither group → can never control. - Keep the bind user
global-veyondedicated and read-only: Veyon's bind password is encrypted with a static, public key — i.e. reversible (details:docs/VEYON-PLAN.md). - The Windows firewall stays open for Veyon (port 11100); the site separation is done by OPNsense.
- After rollout: on the client
gpupdate /forceand restart the Veyon service (reboot) — Veyon reads its config only at service start.
Active automatically with Veyon (pack 10b-veyon-bandwidth-schule), tunable in site.yaml:
veyon_monitoring_interval_ms: 2000 # thumbnail refresh (Veyon default 1000)
veyon_monitoring_quality: 3 # thumbnails 0=Highest(lossless) .. 4=Lowest
veyon_remote_quality: 2 # remote view (Veyon default 0 = lossless!)Veyon has no "lower the resolution" setting, and cannot usefully have one. The Master receives every student's full framebuffer and only scales it down locally afterwards; the thumbnail size is a per-user JSON setting, not a registry value. Smaller tiles save nothing on the wire. The two levers that work are how often a frame is fetched and how hard it is compressed - which is what this pack sets. Roughly 3-5x less traffic in a busy room.
Both keys are read by the Veyon Master, i.e. the teacher's PC, so that machine must be in
the school's OU=Devices - which it is when teachers use the ordinary classroom computers.
The interval is then pushed to the clients, whose Veyon Server discards early update requests
itself, so the traffic is never generated in the first place.
Needs Veyon >= 4.8 on both sides: against a client reporting older, the master silently
falls back to lossless. Check with veyon-cli config get Core/ApplicationVersion.
Two packages make sure that only students (role-student) cannot change certain Windows
settings, while teachers and admins stay unrestricted (always active):
15-lockdown-base(computer): enables loopback merge (UserPolicyMode=1) so that user-based, role-filtered policies take effect on shared classroom machines. Windows' own values are 1 = Merge and 2 = Replace (client event 5311 names the mode); merge keeps the user's own GPOs and layers the machine's user settings on top, replace would drop every GPO linked in the user's OU path. lmn-gpo only ever writes replace when a pack explicitly saysloopback: replace— no catalog pack does.15-lockdown-student(user, exclusive torole-student): pure HKCU policies — proxy not changeable (Settings app and Internet Options), Connections tab & PAC locked, Registry Editor locked.
Stricter is possible via extra HKCU entries in catalog/15-lockdown-student.yaml:
| Effect | Registry (class: user) |
|---|---|
| Hide Control Panel + Settings entirely | …\Policies\Explorer\NoControlPanel = 1 |
| Lock Command Prompt | …\Policies\Microsoft\Windows\System\DisableCMD = 1 |
| Lock Task Manager | …\Policies\System\DisableTaskMgr = 1 |
| Lock wallpaper change | …\Policies\ActiveDesktop\NoChangingWallPaper = 1 |
15-lockdown-student is a global pack: it is linked at OU=SCHOOLS, the common ancestor
of the device and the user OUs, so it also reaches students without loopback. 15-lockdown-base
is still needed for the per-school user packs (the role proxy, see
Role-based proxy) and for machine-bound user settings on shared machines.
Against Windows 11, which pushes its boot manager back to the top of the boot order after every start (machines then boot straight into Windows instead of LINBO). Opt-in:
bootorder_pxe_first: trueBecause the GPO startup-script context has a reduced token (no access to the UEFI NVRAM),
it is two-stage: the GPO script registers a scheduled task (SYSTEM, highest
privileges, at system start) which, with a full token, does the actual bcdedit reorder
(network/PXE to the front, Windows Boot Manager to the end). Robust pattern detection
(IPV4/IPV6/PXE/…), idempotent, never breaks the boot.
Hardware-dependent — test on ONE machine first. After
gpupdate /force+ 2 reboots:schtasks /query /tn LMN-GPO-BootOrderPXE(task there?) andtype %SystemRoot%\Temp\lmn-gpo-bootorder.log(did the worker find the network entries and reorder?). Prerequisite: Fast Startup off (package05-wol/ BIOS), no BitLocker forcing the Windows Boot Manager first.
ntp_mode: ntp # default: explicit NTP against the server. Alternative: nt5dsWhy plain NTP is the default. nt5ds is Microsoft's "domain way": the client takes the
time from the domain hierarchy and requires the reply to be signed with its computer
account. A Samba DC can only sign through ntpd's ntpsigndsocket, and that chain breaks
easily on a stock Ubuntu 24.04 server. When it does, the client rejects every reply and stays
on Local CMOS Clock forever while drifting past the 5-minute Kerberos limit -- with no
error anywhere, because the GPO itself is applied correctly. Observed in the field.
Two known causes, both server-side:
ntpdapplies only the most specific matchingrestrictline and replaces its flags. A barerestrict 10.10.40.0/24therefore stripsmssntpfor exactly that subnet, even thoughrestrict -4 default ... mssntpis present.- Ubuntu 24.04 ships ntpsec 1.2.2, whose MS-SNTP handling is reported broken (fixed upstream in 1.2.3).
Diagnose it on a client with w32tm /query /source. If it says Local CMOS Clock while
w32tm /stripchart /computer:<server> /samples:3 returns values, plain NTP works and only
the signing is failing -- which is exactly what ntp_mode: ntp sidesteps.
Switch to nt5ds only once a client really shows the server as its source. Trade-off:
with plain NTP the time is not authenticated, so someone on the LAN could spoof NTP replies.
Fixes "not all clocks are correct" (always active). Core fix:
MaxPos/NegPhaseCorrection = 0xFFFFFFFF → W32Time also corrects large offsets (typical
for dead BIOS/CMOS batteries); without it a client that drifted far simply never catches up.
Clients only (linked at OU=SCHOOLS); the DC stays untouched.
Check on the client: w32tm /query /source and w32tm /query /status.
Secure Time Seeding off (since 7.3.7, UtilizeSslTimeData = 0). Out of the box Windows
10/11 also sets the clock from time data in its outgoing TLS connections ("Secure Time
Seeding"). Microsoft has reports of that heuristic setting clocks wrong by days to years,
recommends switching it off on Windows Server and ships Windows Server 2025 with it off; for
Windows 10/11 it leaves the decision to the admin. A client clock that jumps by more than
5 minutes makes Kerberos reject its tickets: the proxy asks for a password again (squid's
cache.log: Clock skew too great), file access fails. Our clients have the school server
as their time source and do not need it. The price: a machine whose CMOS battery is dead and
that never reaches the school server (a laptop at home) no longer guesses the time from the
internet. Microsoft lists a reboot as required for this value (the time service stops
using TLS time data as soon as it picks up the policy; the reboot also stops collecting it).
Coming from 7.3.6 or older: run lmn-gpo apply --pack 17-ntp-zeit --yes once (the package
upgrade does not re-apply), then gpupdate /force and reboot the clients. lmn-gpo-check.ps1
shows the value (and what the time service last reported) and fails while it is missing or
not 0.
Off by default. Enable with home_drive_enabled: true (the assistant asks) to have
pack 19-home-h map H: a second time via Group Policy Preferences, on top of the
homeDrive/homeDirectory attributes linuxmuster sets on every user.
What it does not do: make H: appear sooner. Winlogon still connects it first, during session setup, straight from the Kerberos PAC. What it adds is a second attempt at a better moment — the Drive Maps extension runs later in the same logon, and unlike Winlogon it is re-invoked when the machine regains connectivity to a domain controller ([MS-GPOL] 3.2.7.1). That covers the case this exists for: a notebook authenticating over 802.1X where the link is not up yet, the desktop appears normally and H: is silently missing.
The path is not hardcoded per school or role. An LDAP query targeting item reads
the user's own homeDirectory into a variable, which the same item's path then
expands. One entry therefore covers every school, every role and every class — which
is not a nicety but a requirement: student homes carry the class in the path
(\\server\<school>\students\<class>\<user>) and there is no preference variable
for a class.
home_drive_enabled: trueSafety properties, each observed on a real client rather than assumed:
- No
homeDirectory, or a share that cannot be reached → no mapping at all, never a wrong one. Other drives keep working (bypassErrors="1"). - Where H: already works, the entry is a no-op —
action="U"cannot relocate an existing mapping, so it can never tear down a working H:. - sophomorix' own GPO is never touched. Remove the pack and you are back to exactly today's behaviour.
Known limitation: an extension reapplies only when its GPO changed, so the self-healing retry after the network comes back needs the "process even if the Group Policy objects have not changed" option for Drive Maps. That is not shipped yet — it is unverified, and turning on reprocessing at every refresh unverified would be a side effect of its own. Within a single logon the safety net works today.
Check on the client, logged on as the user (not elevated — network drives are per-session):
net use
Off by default (pack 20-drives, new in 7.3.6). It maps the drive letters you list in
/etc/linuxmuster/lmn-gpo/drives.yaml — letter, UNC path, label, groups — and can switch off
linuxmuster's default drives (K: programs, P: projects, S: students, T: shares, R: iso) for
everyone or for listed groups. It works the same at every school and follows the user:
a teacher who logs on at a computer of another school keeps exactly their letters.
# site.yaml (the assistant asks; if you keep an explicit 'packs:' list, add 20-drives to it)
drives_enabled: true
drives_file: /etc/linuxmuster/lmn-gpo/drives.yaml # optional, this is the defaultmkdir -p -m 0700 /etc/linuxmuster/lmn-gpo # exists already once 'lmn-gpo setup' has run
# --update=none: never overwrites an existing drives.yaml
cp --update=none /usr/share/doc/lmn-gpo/examples/drives.yaml.example /etc/linuxmuster/lmn-gpo/drives.yaml
editor /etc/linuxmuster/lmn-gpo/drives.yaml # paths and groups; delete the line 'example: true'
lmn-gpo doctor # section "Drive maps": file, groups, shares, order
lmn-gpo apply --pack 20-drives --dry-run # the table of letters, the XML, the link
lmn-gpo apply --pack 20-drives --yesNo example under /usr/share/doc? Minimized Ubuntu installations exclude /usr/share/doc
(/etc/dpkg/dpkg.cfg.d/excludes): of /usr/share/doc/lmn-gpo only copyright and
changelog.gz are installed, the example file is missing. Get it into a new file — this never
touches an existing drives.yaml. Either from the .deb you installed, named exactly (run it in
the directory of that file; replace 7.3.6 by your version, lmn-gpo --version):
dpkg-deb --fsys-tarfile ./lmn-gpo_7.3.6_all.deb \
| tar -xO ./usr/share/doc/lmn-gpo/examples/drives.yaml.example > /root/drives.yaml.exampleor from GitHub, at the tag of your version (it exists once that version is released):
curl -fsSLo /root/drives.yaml.example https://raw.githubusercontent.com/faircomp/linuxmuster-gpo-template/v7.3.6/examples/drives.yaml.exampleThen copy it to drives.yaml yourself, as above with /root/drives.yaml.example as the source:
cp --update=none /root/drives.yaml.example /etc/linuxmuster/lmn-gpo/drives.yaml.
drives.yaml is a file of its own on purpose: lmn-gpo only reads it, so comments and order
survive (setup rewrites site.yaml), and it holds no secrets — keep it under version
control or copy it between servers. Like site.yaml it is not a package conffile.
| Key | Meaning |
|---|---|
version: 1 |
required |
linuxmuster_defaults.remove |
all · a list such as [K, P, R] · [] (default: keep them). all = every letter a sophomorix:school:<school> GPO maps — read at apply time, so letters moved in the WebUI count — plus K P R S T. H: can never be removed. |
linuxmuster_defaults.for_groups |
remove them only for members of these groups (any of); [] = for every user |
drives[].letter |
D–Z. H: only with home: true (sophomorix gives every account homeDrive H:) |
drives[].path |
UNC path in single quotes, '\\server\share[\folder]'. @server = this server's NetBIOS name in lower case (what sophomorix writes for its own drives), @serverfqdn = its FQDN. %VARIABLES% pass through to the client. |
drives[].home: true |
H: = the user's own homeDirectory, the exact item of pack 19-home-h (Update) |
drives[].label |
Explorer label (umlauts are fine). Windows stores labels per UNC path, not per letter: two letters on the same path show the same label (the one written last), e.g. a T: from sophomorix and your M: both on \\server\<school>\share. |
drives[].groups |
sAMAccountNames, any of them matches; none = every user. Also @role-teacher, @role-student, @role-staff or a raw SID. |
drives[].devices |
optional device groups (any of): only on those computers |
drives[].action |
replace (default) or update. Replace deletes and re-creates the mapping, so a letter that sophomorix or the user has already mapped somewhere else is pointed at your path. Update does not re-point a letter that is already mapped elsewhere — it stays where it was, and the client still logs the item as applied successfully (measured on Windows 11). That is why replace is the default; use update only where an existing mapping must never be touched. |
drives[].reconnect |
true = persistent mapping (Windows stores it in HKCU\Network), written with "remove this item when it is no longer applied", so Windows removes it again once the GPO no longer applies to the user |
The same letter may appear more than once: the first matching entry wins (later entries
carry "and not an earlier entry" targeting). An entry without groups and devices therefore
has to be the last one for its letter — the file is refused otherwise. Unknown keys, an
off: key (YAML reads off as false — the key is remove), a path that is not UNC, C:,
H: without home are all errors with their position (entry 3 (V:)), reported by doctor
and apply at once.
Group names in a multi-school domain: default-school's groups have no prefix
(teachers), every other school's have one (gsg-teachers); global groups are
role-teacher, role-staff, all-teachers, … and your own (sophomorix-group --create --group verwaltung). lmn-gpo resolves names by sAMAccountName, which is unique in the domain.
Another school's share needs permissions. lmn-gpo maps drives, it never grants access. By
default only a school's own groups (<school>-teachers, <school>-students, the school group)
can read \\server\<school>. A letter for a teacher of school A on \\server\<schoolB> is then
not mapped at all: it is missing in Explorer and in net use, the other letters come as
usual, and nothing on the screen says why. The reason is in the client's Application log,
source "Group Policy Drive Maps": warning 4117 "Access denied for 'o:' to '\server\…'" and
warning 4098 "… was not applied because of an error … 0x80070005" for that letter (the RSoP,
gpresult /x, still lists the entry). As admin on the client:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Group Policy Drive Maps'} -MaxEvents 30.
lmn-gpo doctor cannot see this, it runs on the server. Measured in the lab: the letter was
mapped as soon as the cross-school group had read access on the other school's folders.
Mapping a teacher to the own school, as in the example below, needs nothing extra.
Shipped as /usr/share/doc/lmn-gpo/examples/drives.yaml.example — one real layout, an
example, not a default: schools msg, gsg, gym are additional schools,
default-school exists too, the administration has its own file server.
version: 1
linuxmuster_defaults:
remove: all # K: P: S: T: R: (and letters moved in the WebUI)
for_groups: [role-teacher, role-staff] # students keep them
drives:
- {letter: H, label: Home, home: true}
- {letter: M, label: MSG Shares, path: '\\@server\msg', groups: [msg-teachers]}
- {letter: G, label: GSG Shares, path: '\\@server\gsg', groups: [gsg-teachers]}
- {letter: Y, label: GYM Shares, path: '\\@server\gym', groups: [gym-teachers]}
- {letter: V, label: Verwaltung, path: '\\verwaltung\verwaltung', groups: [verwaltung]}- One user GPO for all schools,
LMN-U-GLOBAL-20-drives, linked enforced atOU=SCHOOLS. An enforced link is processed after every non-enforced one below it ([MS-GPOL] 3.2.5.1.5), so it runs aftersophomorix:school:<school>without loopback, with loopback Merge, with Replace, and for a teacher of one school at a computer of another (Merge: the teacher's school first, then the computer's school, then this GPO). - sophomorix' GPOs are never touched. The default letters are removed by Group Policy Preferences Delete items in this GPO, written first (Windows ignores a Delete on a letter that is not mapped, without an error). A Delete also removes a mapping the user made on that letter himself.
- Then H: (
home: true, Update), then your entries in file order with Replace. Every entry is targeted per item to its groups by SID (Windows evaluates the SID, the name is only for display). New group membership takes effect at the next logon (the logon token). - Drive Maps is user policy: it applies at logon and with
gpupdate. After a change, a background refresh briefly disconnects and reconnects Replace drives in running sessions. applysets the enforced link again on every run, in place:samba-tool gpo setlinkrefuses an existing link, so lmn-gpo edits only this GPO's entry in thegPLinkofOU=SCHOOLS(position and every other entry unchanged). Someone who switches enforcement off in the GPMC gets it back with the nextapply, anddoctorwarns until then.doctorrecomputes the processing order for every school (every user OU without loopback, users of every school on every computer OU with Merge, every computer OU with Replace) and warns if any other GPO with drive maps runs later — e.g. an enforced GPO at the domain — naming the GPO, its link and its letters. It also checks group resolution, SIDs drift (a group deleted and re-created), the deployed file againstdrives.yaml, the shares on this server and the sophomorix school GPOs (incl. the S: of the sophomorix template, whose fixed SID exists in no school domain — on Windows S: is never connected).
- A group that does not resolve (or resolves only partly) holds its entry back — never
widened to everyone. When the GPO already exists, nothing is written at all ("existing
GPO left untouched", exit 0, same rule as 7.3.1), so a typo can never remove a working
drive. A new GPO gets the entries that resolve. An unknown
for_groupsgroup keeps every default drive. drives_enabled: truewith a missing or invalid file: the pack is skipped, an existing GPO stays as it is,applyexits 1 and says why. The unedited example (example: true) is refused the same way.
Switch it off with drives_enabled: false + lmn-gpo apply --yes: apply retires the GPO
after a samba-tool gpo backup (/var/backups/lmn-gpo). lmn-gpo remove --pack 20-drives --yes
on its own does not switch it off: while drives_enabled: true stays in site.yaml, the next
apply creates the GPO again. Use remove --pack to take the drives away right now, or
deliberately after a held-back entry, so that the next apply writes a new GPO from the entries
that resolve.
At the next logon the Delete items are gone and sophomorix maps K: P: T: R: again. Entries
without reconnect are not stored on the client, so after the removal they are simply not mapped
any more at the next logon (in a running session they stay until logoff). Entries with reconnect: true are stored by Windows in HKCU\Network;
because they are written with "remove this item when it is no longer applied", the Drive Maps
extension removes them at the next logon as well (measured: event 4101 "… removed",
HKCU\Network empty).
- Windows clients only. Linux clients (linuxclient7) read only
sophomorix:school:<own school>: they keep the default drives and do not get these letters (not yet supported). The WebUI (Clients → Drives) can disable default drives for both — it edits the sophomorix GPO, andsophomorix-school --gpo-createresets it. - No permissions. A drive entry grants no access: the user needs rights on the share
(
\\server\gsgfor a msg teacher,\\verwaltung\verwaltung), without them the letter is not mapped at all (see above). sophomorix sets rights for its own groups only; lmn-gpo sets none. For a cross-school letter (M/G/Y for teachers of another school, e.g. via a grouplk-gsg), set the rights yourself before enabling it. A hint, not a recipe: give the group read (or more, as intended) on the school folder and on the folders below it that it should see, by adding an entry — e.g. in the Windows security dialog, connected asglobal-admin— and do not change or remove sophomorix' own entries. The ACLs of the school folders come from sophomorix' templates andsophomorix-repairwrites them again, so check the extra entry after a repair. Prefer pointing the letter at the folder the group should see (\\server\gsg\share) over opening the whole school root. - No "hide this drive" (it writes
NoDrives, which would outlive the GPO). - Offline notebooks / 802.1X: like 19-home-h — without a DC at logon there are no drives.
linuxmuster already connects the printers itself (sophomorix writes the school GPO's
Printers.xml). This pack only adds the missing piece: on patched Windows 11 a standard user
(student) may not install the printer driver (PrintNightmare, CVE-2021-34527), so a
connected printer fails on first use with "administrator required". Enable it to allow the
driver install automatically, but only from your print server(s):
pointandprint_enabled: true
printservers_extra: [] # only for a dedicated/external print server (FQDN)The trusted-server list is auto-detected to match how linuxmuster connects
(\\SERVER + FQDN + IP) — avoiding the classic short-name-vs-FQDN mismatch. Add
printservers_extra (FQDN, exactly as in the printer path) only for an external print server.
Security: this sets
RestrictDriverInstallationToAdministrators=0— a deliberate, scoped relaxation, bounded to your servers (TrustedServers=1+ServerList). The safest alternative is to pre-stage the drivers in the LINBO image and leave this disabled.
On by default since 7.3.8 (pack 21-office-trusted-schule). Since 2022 Office blocks VBA
macros in files from the internet. Measured with the Access Runtime on Windows 11, without lmn-gpo:
- Only a notice for files on H:, T: and the other drives and on
\\server\<school>\…: Windows counts the short server name as Local intranet, and Access shows its normal security notice with Open. - Hard block — "Microsoft has blocked macros from running because the source of this file is
untrusted", no way to enable them (the Runtime offers only Cancel) — for files with a Mark
of the Web
ZoneId=3(browser downloads, e.g. from the edulution web UI) and for files opened through the server's FQDN\\server.<domain>\…or the DFS target\\fs.<domain>\…(both in the Internet zone; "Unblock" in the file properties does not help on such a share).
This pack makes the school's network drives trusted locations in Office, by default for
Access only and for all roles: macros in files opened from them (letter or UNC path) run
without any notice, so a teacher can test the Access databases collected from the students.
A download saved to H: and opened there runs, too (H: keeps no Zone.Identifier). Still
hard-blocked: files opened through the FQDN or the DFS target (unless office_trusted_forms
has dfs, below) and local files with ZoneId=3. For downloads from edulution,
pack 22 replaces the hard block with the normal notice.
office_trusted_enabled: true # default; false switches it off (see below)
office_trusted_apps: [access] # any of access, excel, word, powerpoint
office_trusted_roles: all # or a list of teacher, student, staff
office_trusted_forms: [unc, letter] # default; add dfs for the DFS target (see below)Which drives, read at every apply, per school:
- H: — the share root of the school's users'
homeDirectory(\\server\<school>\), not one path per user; - linuxmuster's default drives (K: P: S: T: R:) as the
sophomorix:school:<school>GPO maps them — read only, a drive disabled in the WebUI is left out; - with
drives_enabled: true, every entry ofdrives.yaml(also other file servers, e.g. the administration's).
Each drive becomes one location with "subfolders allowed", written as the UNC path and as the
drive letter (H:\). Measured with Access on Windows 11: Office checks the path as the file
was opened, and a letter and the UNC path it is mapped to cover each other — a file opened via
H:\… runs with only the UNC location, and one opened via \\server\<school>\… with only the
letter. Optional third form dfs: with linuxmuster-fileserver the school share on the server is a
DFS proxy (msdfs proxy = //fs.<domain>/<school> in smb.conf, read with testparm); Office does not
resolve it, so the target \\fs.<domain>\<school>\ only matters for files opened through that
name (a shortcut, a link). Not covered by any form: files opened as \\server.<domain>\… (the
FQDN) — they stay blocked. A path below another one is covered by it
(\\server\<school>\share is inside \\server\<school>\). Office takes at most 20 policy
locations per application: a school that would need more is held back (nothing written, an
existing GPO left as it is, apply exits 1 and lists them) — nothing is cut silently. Fix:
fewer drives in drives.yaml, or fewer forms in office_trusted_forms.
Written per application (user policy, Software\Policies\Microsoft\Office\16.0\<app>\Security\ Trusted Locations): Allow Trusted Locations on the network (without it Office ignores every
policy location on a network path) and Trusted Location #1…#N with path, subfolders and the
description lmn-gpo <letters>. Plus Allow mix of policy and user locations in Common, so
Office's own locations (Access' wizard folder ACCWIZ) and the user's stay in use — Microsoft says
that is also what "not configured" does; it is written to pin it. Names verified against
Microsoft's ADMX: docs/RESEARCH.md section 9. One user GPO per school,
LMN-U-<school>-21-office-trusted-schule, linked to OU=Devices of the school and effective
through loopback, like the role proxy (15-lockdown-base provides it; apply/doctor warn
if no loopback pack is active). A teacher of school A at a computer of school B gets school B's
paths; the letter form still covers H:.
- Files on these drives open with macros enabled and without any prompt, AutoExec included. That applies to files students put there and to downloads saved to H:, too — a trusted location skips the internet check entirely.
- Microsoft: "Network locations can also be set as a Trusted Location, but it's not recommended", and its security baseline for Microsoft 365 Apps disables network trusted locations. A site that applies that baseline gets whichever GPO is processed last.
- Default is Access only. Excel, Word and PowerPoint only when you list them.
- Teachers: open students' Access files with SHIFT held down — that skips the AutoExec macro and the startup form. It is advice, not a safeguard: a database can switch the SHIFT bypass off itself (
AllowBypassKey).- Alternative (Microsoft's recommendation for shares): leave the pack off (
office_trusted_enabled: false). Files on the drives (\\server\…, Local intranet) then follow the Trust Center setting (the security notice) instead of running silently. Names Windows puts into the Internet zone (server.<domain>,fs.<domain>) lose the hard block only in the Local intranet or Trusted sites zone (Site to Zone Assignment List, as12-proxy-zone-schuledoes for the proxy). Not shipped as a pack; mind that such a list replaces the users' own zone lists (proxy).
Switching it off: office_trusted_enabled: false + lmn-gpo apply --yes. apply backs the
GPOs up (/var/backups/lmn-gpo) and removes them; every value is under Software\Policies, so
the clients drop them at the next policy refresh (gpupdate /force, logon). Narrower:
office_trusted_roles: [teacher] (only role-teacher), or another office_trusted_apps list.
Changing the roles of an existing GPO other than narrowing from all: apply only ever adds
security-filter entries, so it holds the school back and names the fix —
lmn-gpo remove --school <school> --pack 21-office-trusted-schule --yes, then apply.
Upgrading: a site with packs: null (the default) gets the pack at the next apply, without
any change to site.yaml — that changes Office's behaviour on every Windows client. With an
explicit packs: list it only comes when 21-office-trusted-schule is added.
Check on the client as the logged-on user: lmn-gpo-check.ps1 lists the locations; in Office
File > Options > Trust Center > Trust Center Settings > Trusted Locations, section Policy
Locations.
On by default, once the host is set (pack 22-edulution-trusted-schule). Files that a teacher
downloads from the school's edulution website carry the Internet zone (ZoneId=3) and Office
hard-blocks their macros. With the site in the Trusted sites zone, measured with Edge 157 on
Windows 11: Edge saves the download without any Zone.Identifier (no Mark of the Web, not
ZoneId=2), and Access shows its normal security notice with Open instead of the hard block.
Chrome and Firefox are not measured. A download saved to H: and opened there does not need this
pack: with pack 21 its macros run without any notice (H: keeps no Zone.Identifier).
edulution_trusted_enabled: true # default
edulution_host: "edulution.school.de" # empty = pack skipped (never guessed)
edulution_host_by_school: { schule2: "edu.schule2.de" } # optional, per schoolWritten: https://<host> = 2 in the Site to Zone Assignment List
(HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey), one
computer GPO per school, linked to OU=Devices of the school — teacher notebooks included —
with the client-side extension Internet Explorer Zonemapping registered on it, without which
Windows never applies the list. Only https:// is mapped (plain http to that host stays in the
Internet zone, measured); a path, port or wildcard in the host is refused (held back, exit 1).
Without a host the pack is skipped with a notice. It shares the key with 12-proxy-zone-schule
(proxy host → Local intranet): both GPOs only add their own value and never delete the other's.
Side effect: the whole site is in the Trusted sites zone for Windows, not only for Office — every check that keys on the Internet zone treats its downloads as trusted (e.g. Office's Protected View for internet files, Windows' security prompt before running a downloaded program), and Edge's IE mode uses the Trusted sites settings for it. Only add a site you control. And while the list is in effect Windows uses only the sites from the GPO: a site a user had added to Trusted sites fell back to the Internet zone (measured on Windows 11; for sites set locally on the machine Microsoft says the same;
docs/RESEARCH.mdsection 10). Switch off:edulution_trusted_enabled: false(or an empty host) +apply.
Check: lmn-gpo-check.ps1 compares every entry of the zone list with the zone Windows really
applies (urlmon MapUrlToZone, works as a normal user) and reports [!!] when they differ;
lmn-gpo doctor on the DC names a GPO whose list lacks the extension. For a downloaded file,
Get-Content <file> -Stream Zone.Identifier shows nothing from a Trusted site and ZoneId=3 from
the Internet zone (docs/RESEARCH.md section 10).
GPOs only take effect once the client fetches them and the respective service reads them:
- In general:
gpupdate /force, then reboot (computer policies + loopback + startup/shutdown scripts take effect at boot). - Veyon: additionally restart the Veyon service (reboot).
- Wi-Fi (PSK/Enterprise): reboot (machine profiles are imported at boot).
- Boot order: reboot twice, then check
…\Temp\lmn-gpo-bootorder.log. - Time:
gpupdate /force→w32tm /config /update→w32tm /resync(or reboot).
lmn-gpo doctor resolves every security-filter group from your real site.yaml and warns
when an exclusion matches nothing. apply runs the same check before its first change
and then follows one rule — it never creates a GPO that would reach the devices it was meant
to spare:
- Group missing in the pack's scope (a school without
d_nopxe, ateachernbCN that exists nowhere): the pack is held back — GPO not created, an existing one left untouched (lmn-gpo remove --school <school> --pack <id>removes it deliberately). One line per pack, exit 0. For a global pack the group only has to exist in some school; schools without it are named in anote:line (nothing is excluded there). teachernb: skip: you are saying there are no teacher notebooks. The@teachernbexclusions are dropped, the packs apply to every device, the preflight names them in one line. Only the literalskipdoes this; an emptyteachernb:counts asnopxe. GPOs that already exist keep the deny ACEs of an earlier run until they are re-created —applyadds filter ACEs, it never removes them.13-wlan-enterprise(filtered to teacher notebooks) is held back.filter_applygroup missing (13-wlan-enterprisewithout a teacher-notebook group): the pack is held back, as before (it would otherwise apply to everyone).
Security-filter prerequisites (from site.yaml):
config: /etc/linuxmuster/lmn-gpo/site.yaml
teacher-notebook group (teachernb): 'nopxe'
⚠ 12-proxy-student-schule one exclude-read @teachernb no d_nopxe group in one → pack held back by apply (fail-closed)
Since 7.3.2 both commands also check the loopback prerequisite of the per-school user packs (see Role-based proxy) and name the pack, the school and the packs that would fix it. This one is a warning, not a hold-back: the GPO is correct, only the deployment around it is incomplete — the exit code does not change.
Loopback prerequisite:
⚠ these packs are linked to OU=Devices (address follows the device) and deliver USER settings.
Without loopback processing they reach NO user - the GPO is created, linked and filtered,
and has no effect:
12-proxy-student-schule default-school needs a pack with 'loopback:' on this school's devices
Fix: add one of these packs to 'packs:' in site.yaml (or drop the 'packs:' list to apply all): ...
lmn-gpo env additionally flags any school that has no noPXE group at all. teachernb is one
value for all schools: nopxe means each school's own d_nopxe group, a CN is looked up
below each school's OU, so a group of that name is needed in every school that uses the packs.
scripts/lmn-gpo-check.ps1 checks on the Windows client (read-only) whether the policies
have arrived and take effect — covering every pack: gpresult (computer and
user), registry actual values, firewall, local groups, KMS (Windows and Office),
hotspot, OneDrive, hibernation,
loopback, Firefox, role proxy, student lockdown (HKCU), Veyon, Wi-Fi (+ RADIUS CA),
time sync (w32tm), the boot-order log, the Office trusted locations (HKCU) and the
site-to-zone list (proxy host, edulution) against the zone Windows really applies to each
entry ([!!] if they differ). It also produces an HTML report.
Best run twice:
# 1) as ADMINISTRATOR → computer GPOs, firewall, groups, KMS, Veyon, time, boot order
powershell -ExecutionPolicy Bypass -File lmn-gpo-check.ps1 -Refresh -WlanCaSubject "RADIUS CA"
# 2) as the logged-in STUDENT (not elevated) → the user restrictions (lockdown/proxy)
powershell -ExecutionPolicy Bypass -File lmn-gpo-check.ps1-Refresh runs gpupdate /force first (the only non-read-only action). Output: [OK]/[!!]
per check + a summary.
The user half can only be checked in a real interactive session. A logon over SSH or WinRM is logon type 8 in session 0, and Windows processes no user policy there:
gpresult /r /scope user /user DOMAIN\useranswers "has no RSOP data", andgpupdate /force /target:userstill prints "completed successfully" and exits 0 while doing nothing at all (the operational log shows one 5321 withSessionID=0and no 5311/5312/4016). Check the role proxy, the student lockdown and H: while the user is logged on at the console or over RDP — a remote-shell result is meaningless.
A site with
packs: nullgets21-office-trusted-schuleat the nextapplywithout any change tosite.yaml: H:, the default drives and thedrives.yamldrives become Office trusted locations for Access on every Windows client (macros there run without a prompt). Decide before you apply:office_trusted_enabled: falsekeeps the old behaviour.22-edulution-trusted-schuleonly acts onceedulution_hostis set.lmn-gpo apply --dry-runlists both.Proxy in the Intranet zone, now for real — and only the GPO's sites count. With the role proxy on, the next
applyregisters the Internet Explorer Zonemapping extension on the existing12-proxy-zone-schuleGPOs and bumps their version (lmn-gpo doctornames every GPO still without it). After a policy refresh the proxy host is in the Local intranet zone — up to 7.3.7 it stayed in the Internet zone. From then on only the site-to-zone entries from the GPO count: after the update to 7.3.8 andapply, at a school with the role proxy (pack 12) or an edulution host (pack 22), sites users put into a zone no longer count — measured on Windows 11, a user's Trusted site fell from zone 2 to the Internet zone although the entry stayed — and according to Microsoft neither do sites the image set on the machine. Zones Windows assigns by itself are unchanged (measured: H: and\\server\…stay Local intranet) (proxy).
7.3.2 corrects the loopback value. Up to 7.3.1
loopback: mergewroteUserPolicyMode=2, which is Windows' Replace — the inverse of what was meant. Installing the package changes nothing on a single client: the value lives in the GPO, so the existingLMN-C-GLOBAL-15-lockdown-base/LMN-C-GLOBAL-12-proxy-basekeeps saying2until it is written again.lmn-gpo doctor # names the stale value: "its GPO still carries UserPolicyMode=2 (Replace)" lmn-gpo apply --yes # writes 1 (Merge) and bumps the GPO versionthen
gpupdate /force+ reboot on the clients; event 5311 must then say "Merge".Be aware of what changes for the clients. Under Replace, every GPO linked in a user's own OU path (
OU=Students,OU=Teachers, a class OU,OU=Management, GPOs from other tools) was silently dropped on every managed machine. With Merge they take effect again — that is the correct behaviour and what the README always promised, but if your site unknowingly relied on Replace, check those GPOs before you re-apply.
Upgrade and run
lmn-gpo apply --yesonce withoutdrives_enabledfirst — that writes the loopback fix of 7.3.2 — and check one client (gpupdate /force, reboot, event 5311 says "Merge"). Only then enable fixed drive letters. The switch from Replace to Merge changes on its own which drives a teacher sees at a computer of another school (Merge: their own school's defaults first); doing both at once makes the two effects impossible to tell apart.
How you upgrade depends on how you installed. Either way /etc/linuxmuster/lmn-gpo/site.yaml
is preserved (Wi-Fi passwords and all) — so no settings are lost.
Packaged install (lmn-gpo) — recommended. Download the newer release .deb and install
it over the old one:
# fetch the latest release .deb (or download it from the releases page):
gh release download --repo faircomp/linuxmuster-gpo-template --pattern '*.deb'
apt install ./lmn-gpo_*_all.deb # or: dpkg -i lmn-gpo_*_all.deb
lmn-gpo doctor # verify the environment
lmn-gpo apply --dry-run # what changes? (uses the saved site.yaml)
lmn-gpo apply --yesReleases: https://github.com/faircomp/linuxmuster-gpo-template/releases/latest. On upgrade
your existing /etc/linuxmuster/lmn-gpo/site.yaml is kept untouched (it is never removed on
upgrade/remove), so your configuration carries over automatically.
Source checkout (./lmn-gpo-cli). Pull the new code and re-apply:
cd /opt/linuxmuster-gpo-template
git pull
./lmn-gpo-cli apply --config /etc/linuxmuster/lmn-gpo/site.yaml --dry-run # what changes?
./lmn-gpo-cli apply --config /etc/linuxmuster/lmn-gpo/site.yaml --yes- A
git pulldoes not touch yoursite.yaml(it is gitignored and ideally lives under/etc/linuxmuster/lmn-gpo/). Avoidgit clean -fdx/git reset --hardin the repo folder — they delete ignored files, and thus asite.yamlkept there. - After the re-apply, do
gpupdate+ reboot on the clients as above.
| Symptom | Cause / fix |
|---|---|
apply says "0 GPO(s) applied" or a pack is missing from the output |
an opt-in pack is not enabled, or filtered by --pack. Every skipped pack has a line ▸ LMN-… skipped: <missing site.yaml key> (e.g. firefox_enabled is not true), every held-back pack a line held back: exclusion … matches no group — read those lines. |
| Settings lost after an update | site.yaml was inside the repo folder and deleted by git clean/reset. → move it to /etc/linuxmuster/lmn-gpo/. |
Two site.yaml (assistant vs. --config) |
setup saves to /etc/linuxmuster/lmn-gpo/. Always apply the same file. |
| Teachers can't open the Veyon Master | on the client gpupdate /force + restart the Veyon service. The toolkit already sets the correct BaseDN-relative group DNs. |
| Boot-order log: "a required privilege is not held" | old script version. The current package uses a scheduled task — re-roll out; check the log for Worker (Scheduled Task…) lines. |
| Clocks wrong | apply package 17-ntp-zeit; on the client w32tm /resync. The MaxPhaseCorrection fix also corrects battery machines. Clocks that jump by minutes (proxy asks for a password, Clock skew too great): pack 17 from 7.3.7 on switches Secure Time Seeding off, re-apply it and reboot the client. |
| GPO supposedly not applied | on the client as admin gpresult /r; cross-check with lmn-gpo-check.ps1; mind -Refresh + reboot. |
A per-school user GPO (LMN-U-<school>-12-proxy-*) is missing from gpresult /scope user — not even under "filtered out" |
no loopback on that machine. These packs are linked to OU=Devices and need 12-proxy-base or 15-lockdown-base; apply/doctor print "Loopback prerequisite". Check on the client: reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v UserPolicyMode must exist and read 0x1. |
gpupdate /target:user over SSH/WinRM reports success, nothing changes |
user policy is only processed in an interactive session (logon type 2/10), never in session 0. See Checking on the client. |
A default drive (K:, T:, …) still appears although drives.yaml removes it |
lmn-gpo doctor, section "Drive maps": is the link at OU=SCHOOLS enforced, does another GPO with drive maps run later, is the entry held back (unknown group)? Is the user in a for_groups group (a new membership needs a new logon)? On the client gpresult /h shows the winning GPO per drive. |
A drive from drives.yaml is missing |
group membership (new logon), held-back entry (apply/doctor name it), Linux client (not supported), or no rights on the share: then the letter is not mapped at all and the client's Application log, source "Group Policy Drive Maps", has warnings 4117 "Access denied for ':' to ''" and 4098 with 0x80070005. lmn-gpo sets no rights; a teacher has none on another school's share by default (Fixed drive letters). |
The drives come back after lmn-gpo remove --pack 20-drives |
drives_enabled: true is still set, so the next apply creates the GPO again. Switch it off with drives_enabled: false + lmn-gpo apply --yes. |
A drive from drives.yaml points to an old path |
the user had mapped that letter elsewhere and the entry uses action: update, which does not re-point it. Use replace (the default). |
| Two drives show the same Explorer label | they point to the same UNC path; Windows keeps one label per path. |
samba-tool gpo listall shows fewer GPOs than lmn-gpo list |
the 12-proxy-*-schule packs deny Read to @teachernb (→ d_nopxe), and the DC's own machine account is a member of that group. Without -U administrator listall runs under the machine identity and simply cannot see them — it is not a missing GPO. Use lmn-gpo list --mine (reads the directory as root) for inventory and clean-up checks. |
linuxmuster.net 7.x Samba AD DC, Python ≥ 3.10, python3-yaml, the samba Python bindings,
samba-tool (Samba ≥ 4.16 for gpo load), openssl (for Veyon/Wi-Fi certificates).
Runs as root on the DC.
Building the .deb yourself needs make and dpkg-dev (no debhelper) — and can be done on
any machine, not just the DC. Installing the ready-made .deb from a release needs nothing extra.
lmn_gpo/ Python engine + CLI (gpo, apply, env, catalog, veyon, wlan, scripts_ext, setup, paths, cli)
catalog/ 36 YAML policy packs
examples/ drives.yaml.example (installed to /usr/share/doc/lmn-gpo/examples/)
scripts/ Windows startup/shutdown scripts + lmn-gpo-check.ps1 (client diagnostics)
tests/ pytest unit tests (no DC needed; run in CI)
lib/ veyon-default-pub.pem (Veyon's public key)
docs/ RESEARCH.md, VEYON-PLAN.md
wallpapers/ branding images per school (images not committed)
debian/ source package (debhelper 13): changelog — the single version source
(top entry = package version, dist lmn73) — control, rules, install, dirs,
docs, clean, copyright, postinst/prerm/postrm
Makefile make deb -> dpkg-buildpackage -> ../lmn-gpo_<version>_all.deb
.github/workflows/ GitHub Actions (ci.yml checks, builds and installs on every push;
release.yml builds the .deb and attaches it on a v* tag that equals the changelog)
LICENSE GPL-3.0
dist/ build output (the .deb) — gitignored
Ein wiederverwendbares Group-Policy-Template-Toolkit für linuxmuster.net 7.x (Ubuntu 24.04 + Samba 4.19 Active-Directory-DC). Es erstellt, verlinkt und berechtigt Windows-11-Gruppenrichtlinien direkt vom Linux-Server aus – ohne Windows-GPMC – und ist Multischule-fähig (mehrere Schulen pro Server sowie identisches Ausrollen über viele Kunden-Server hinweg).
Status: fertig & verifiziert. 36 Policy-Packs, idempotent, mit
--dry-run. End-to-End gegen eine echte linuxmuster-7.3-Instanz getestet: anlegen → idempotenter Re-Run (0 Änderungen) →sysvolcheck/aclcheck/dbchecksauber → restlos entfernen.
Befehlsname: die Beispiele unten nutzen
lmn-gpo(das installierte Debian-Paket — der empfohlene Weg). Aus einem Source-Checkout heißt das Kommando stattdessen./lmn-gpo-cli— gleiche Befehle, gleiches Verhalten.
- Was das Toolkit macht · Konzept
- Features (36 Packs)
- Anleitung: Installation → Schnellstart → Bedienung → Konfiguration
- Features einrichten: KMS · Branding · Firefox · Proxy · WLAN · Veyon · Schüler-Lockdown · Bootreihenfolge · Zeitsync · Feste Laufwerke · Point and Print · Office-Speicherorte · edulution-Site
- Ausrollen auf die Clients · Prüfen am Client · Update des Toolkits · Troubleshooting
- Anforderungen · Verzeichnisstruktur
Damit ein Windows-Client eine vom Samba-DC gesetzte GPO anwendet, müssen drei Dinge
konsistent sein: die Registry.pol (PReg-Format), die Version in GPT.INI und im
AD-Attribut versionNumber, sowie die passende Client-Side-Extension-GUID in
gPCMachineExtensionNames. samba-tool gpo load erledigt genau das atomar für
Registry-basierte Policies; für Sicherheitseinstellungen (Benutzerrechte, Restricted
Groups), lokale Admins (GPP) und Start-/Shutdown-Skripte schreibt das Toolkit die Dateien
selbst und registriert die jeweilige CSE-GUID. Details: docs/.
- Deklarativer YAML-Katalog (
catalog/): ein Paket pro Anliegen, mit Scope (global / pro Schule) und Ziel (Computer/User), optional exklusiv auf Geräte- oder Rollen-Gruppen gefiltert. lmn-gpo-CLI mit interaktivem Setup-Assistenten, idempotent (beliebig oft ausführbar), überall--dry-run, persistente Parameter insite.yaml.- Dynamische Erkennung: Realm, Base-DN, Server-IP/Subnetz, Schulen, deren Präfixe,
Admin-Gruppen, die
d_nopxe-Gerätegruppe, Rollen-Gruppen und Räume werden live aus dem AD gelesen – nichts ist aufdefault-schoolhartkodiert. - Schonend: rührt
sophomorix:*- und Default-GPOs nie an, prüft nach jeder Änderung ACLs (aclcheck/sysvolcheck) und gleicht sysvol-Rechte persysvolresetab.
Alle 36 Packs in catalog/. Immer aktiv (kein zusätzlicher Parameter nötig):
| Paket | Wirkung |
|---|---|
| Datenschutz / Telemetrie | Telemetrie, Werbe-ID, Aktivitätsverlauf, Standort, Input-Sammlung, „Find my device", KI-Datenanalyse aus |
| Microsoft-Konten blockieren | keine MS-Konten-Anmeldung, nur lokale/Domänen-Konten |
| OneDrive deaktivieren | OneDrive-Autostart & Datei-Sync aus |
| First-Run / OOBE / Consumer | „Fertig einrichten", Spotlight, Cortana, Consumer-Features, Edge-/Erstlauf-Assistenten aus |
| Windows-Update-Split | aus für LINBO-Rechner, an für Nicht-LINBO-Geräte (d_nopxe) |
| Energie | kein Standby, Display geht nie aus (display_off_seconds, 0 = nie) — lockerer für Lehrer-Notebooks |
| Bildschirmsperre | Sperre nach 30 Min Inaktivität — lockerer für Lehrer-Notebooks |
| Ruhezustand aus | Hibernate deaktiviert — außer d_nopxe |
| Wake-on-LAN + Fast Startup aus | WoL scharf (Startskript), HiberbootEnabled=0 |
| Remote-Management | RDP aktiv, Firewall-Ausnahmen (RDP/SMB/RPC/ICMP), Remote-Shutdown-Recht |
| Globale Admins | global-admins als lokale Admins + RDP überall |
| Schul-Admins | <schule>-admins als lokale Admins + RDP je Schule |
| Mobiler Hotspot verbieten | Windows-Hotspot / ICS auf allen Rechnern gesperrt (Schalter ausgegraut) — keine Ausnahme |
| Schüler-Lockdown | Schüler (role-student) können sensible Einstellungen nicht ändern — v. a. den Proxy nicht rausnehmen (+ Verbindungen-Tab/PAC & Registry-Editor gesperrt); Lehrer/Admins uneingeschränkt (Loopback + Filter) |
| Zeitsynchronisation (W32Time) | Clients synchen per explizitem NTP vom Server (ntp_mode, Standard); korrigiert auch große Versätze (leere CMOS-Batterie); Secure Time Seeding aus (keine Uhrsprünge aus TLS-Daten); nt5ds möglich, wo MS-SNTP-Signierung funktioniert |
| Office: Netzlaufwerke vertrauenswürdig | H:, die Standardlaufwerke von linuxmuster (und drives.yaml) werden in Office vertrauenswürdige Speicherorte, standardmäßig nur Access — Makros dort laufen ohne Rückfrage; office_trusted_enabled: false schaltet ab. Details |
Optional (per site.yaml / Setup-Assistent aktiviert):
| Paket | Aktiviert durch | Wirkung |
|---|---|---|
| KMS-Aktivierung (Windows) | kmshost |
Windows gegen den KMS-Host aktivieren (Startskript) |
| KMS-Aktivierung (Office) | kms_office_host (oder kmshost) |
Volumen-Office aktivieren — eigener Registry-Schlüssel, eigenes Startskript |
| Branding pro Schule | Wallpaper-Datei | Desktop- und Anmelde-Hintergrund je Schule (aus NETLOGON) |
| Veyon | veyon_binddn + Passwort |
Klassenraum-Steuerung, LDAP-Directory, Roaming, nur Lehrer (role-teacher + all-teachers); bandbreitenoptimiertes Monitoring |
| Firefox-Grundhärtung | firefox_enabled |
First-Run aus, saubere New-Tab (Suche + Verknüpfungen, kein Werbekram) |
| Firefox-Startseite | firefox_enabled und firefox_homepage (oder firefox_homepage_by_school) |
global-Default oder pro Schule, optional fest gesperrt — eine URL ohne firefox_enabled: true wird ignoriert, apply sagt es |
| Rollen-Proxy | proxy_enabled + Host |
Adresse folgt dem Gerät (Schule), Port folgt dem Nutzer (Lehrer/Schüler/Staff), roaming-fest; alle Browser auf System-Proxy; Proxy-Host als Intranet-Zone (SSO) |
| WLAN PSK (Schüler) | wlan_psk_networks |
beliebig viele PSK-Netze als Maschinen-Profil → verbinden vor dem Login, standortübergreifend roaming-fähig; nicht auf Lehrer-Notebooks |
| WLAN Enterprise (Lehrer) | wlan_enterprise_ssid + CA-Cert |
WPA2-Enterprise/PEAP mit RADIUS, CA-Zertifikat wird installiert; nur Lehrer (RADIUS erzwingt Gruppe), exklusiv auf d_nopxe |
| UEFI-Bootreihenfolge PXE zuerst | bootorder_pxe_first: true |
Scheduled Task (SYSTEM/höchste Rechte) zwingt Netzwerk/PXE an die erste Stelle (→ LINBO), falls Windows sich vordrängt; robuste Muster-Erkennung, idempotent. Hardwareabhängig — erst auf 1 Gerät testen |
| Point and Print erlauben | pointandprint_enabled: true |
lässt Schüler Druckertreiber von euren Druckservern automatisch installieren — die Drucker, die linuxmuster/sophomorix ohnehin verbindet — was gepatchtes Windows 11 sonst blockiert (PrintNightmare). Vertraut nur euren Servern (auto-erkannt \\SERVER + FQDN + IP, plus printservers_extra) |
| Feste Laufwerke | drives_enabled: true + drives.yaml |
eigene Laufwerke (Buchstabe, UNC-Pfad, Bezeichnung, Gruppen) an jeder Schule, H: aus dem Home-Verzeichnis, linuxmuster-Standardlaufwerke K: P: S: T: R: für alle oder für Gruppen abgeschaltet; eine Benutzer-GPO, erzwungen verlinkt, damit sie gegen die Schul-GPOs gewinnt — auch für eine Lehrkraft am Rechner einer anderen Schule. Details |
| edulution als vertrauenswürdige Site | edulution_host (standardmäßig an, sobald ein Host eingetragen ist) |
https://<host> in der Windows-Zone Vertrauenswürdige Sites: Edge speichert Downloads von dort ohne Herkunftskennzeichnung, Access zeigt die normale Sicherheitswarnung statt der harten Blockade; Lehrer-Notebooks eingeschlossen. Nebenwirkungen: Windows vertraut der ganzen Site, und eigene Zonenlisten der Benutzer zählen nicht mehr. Details |
Auf dem linuxmuster-Server (Samba-AD-DC) als root. Zwei Wege — einen wählen.
Das aktuelle Release-Asset herunterladen und installieren. Das Kommando ist dann
lmn-gpo (/usr/bin/lmn-gpo) und funktioniert aus jedem Verzeichnis:
# aktuelles Release-.deb laden (via GitHub-CLI):
gh release download --repo faircomp/linuxmuster-gpo-template --pattern '*.deb'
# — oder lmn-gpo_*_all.deb von Hand von der Releases-Seite holen:
# https://github.com/faircomp/linuxmuster-gpo-template/releases/latest
# auf dem linuxmuster-Server installieren:
apt install ./lmn-gpo_*_all.deb # oder: dpkg -i lmn-gpo_*_all.deb
lmn-gpo doctor # Umgebungs-Selbstcheck – muss grün seinDas Repo klonen und direkt daraus fahren; hier bleibt das Kommando ./lmn-gpo-cli (aus
dem Repo-Ordner, nicht lmn-gpo):
cd /opt
git clone https://github.com/faircomp/linuxmuster-gpo-template.git
cd linuxmuster-gpo-template
./lmn-gpo-cli doctor # Umgebungs-Selbstcheck – muss grün seinOptional das .deb selbst aus dem Checkout bauen (braucht make, dpkg-dev,
debhelper und dh-python, kein root) und installieren — das Kommando ist dann
lmn-gpo wie oben:
make deb # = dpkg-buildpackage -us -uc -tc -I -I".github"
apt install ../lmn-gpo_*_all.deb # oder: dpkg -i ../lmn-gpo_*_all.debdpkg-buildpackage legt .deb, .changes, .buildinfo, .dsc und das Quell-Tarball
oberhalb des Checkouts ab.
Die Version stammt aus dem obersten Eintrag von debian/changelog (lmn-gpo --version zeigt sie).
Es sind keine zusätzlichen Pakete nötig (siehe Anforderungen – Python,
samba-Bindings und samba-tool bringt linuxmuster mit).
Das Paket legt die CLI unter /usr/bin/lmn-gpo ab, Katalog/Skripte unter
/usr/share/lmn-gpo/, und liest dieselbe Config /etc/linuxmuster/lmn-gpo/site.yaml.
Eine vorhandene site.yaml aus einem Source-Checkout wird bei der Installation
automatisch migriert und bei Upgrade/Remove nie gelöscht — es gehen keine
Einstellungen verloren. Es installiert komplett im eigenen Namespace (lmn-gpo) und fasst
keine linuxmuster-Dateien an.
Wichtig – wo liegt die
site.yaml? Der Assistent speichert deine Einstellungen standardmäßig unter/etc/linuxmuster/lmn-gpo/site.yaml— bewusst außerhalb des Repos. Nur so überlebt sie jedesgit pull/git clean. Lege sie dort ab und wende immer von dort an, dann können Updates deine Konfiguration (inkl. WLAN-Passwörter) nie verlieren.
lmn-gpo doctor # 1. Umgebung prüfen
lmn-gpo setup # 2. interaktiv einrichten (fragt nur die Entscheidungen)
# -> speichert /etc/linuxmuster/lmn-gpo/site.yaml, zeigt Dry-Run
lmn-gpo apply --yes # 3. anwenden (nutzt automatisch die gespeicherte site.yaml)Danach auf einem Client gpupdate /force + Neustart, dann mit
lmn-gpo-check.ps1 kontrollieren.
Alle Kommandos: lmn-gpo <befehl>. Überall gilt: read-only-Befehle ändern nichts,
schreibende brauchen --yes (oder die Rückfrage im Assistenten).
| Befehl | Zweck | Optionen |
|---|---|---|
doctor |
Umgebungs-Selbstcheck (Realm, Gruppen, sysvol, Secret, Security-Filter-Gruppen) — read-only | |
env |
erkannte Umgebung ausgeben (Schulen, Gruppen, SIDs) | --json maschinenlesbar |
list |
vorhandene GPOs + ihre Verlinkungen | --mine nur die LMN-*-GPOs des Toolkits |
setup |
interaktiver Assistent → schreibt site.yaml, optional gleich anwenden |
--config <datei> |
apply |
Katalog aus einer site.yaml anwenden (nicht-interaktiv) |
--config, --school (wiederholbar), --pack (wiederholbar), --dry-run, --yes, --defaults |
remove |
die LMN-*-GPOs des Toolkits wieder entfernen |
--school (wiederholbar), --pack (wiederholbar), --dry-run, --yes |
selftest --yes |
nicht-destruktiver End-to-End-Test der Engine (Wegwerf-GPO, kurz an die Devices-OU der ersten erkannten Schule gelinkt) | --dry-run |
veyon-encrypt-password |
Bind-Passwort für Veyon verschlüsseln (Hex für site.yaml) |
--password (sonst Abfrage) |
Global: lmn-gpo --no-color <befehl> gibt [ok]/[warn]/[FAIL] statt farbiger Zeichen aus
(automatisch, wenn stdout kein Terminal ist, z. B. per ssh oder in ein Log). apply --defaults
läuft ohne Antwortdatei — jedes optionale Pack gilt dann als abgeschaltet, apply entfernt
also deren GPOs; ohne --defaults wird eine fehlende oder leere site.yaml abgelehnt.
lmn-gpo setupDer Assistent erkennt die Umgebung selbst und fragt nur die Entscheidungen ab
(Schulen, Pakete, Firewall-Quelle, Lehrer-Notebook-Gruppe, KMS, Wallpaper, Veyon, Firefox,
Proxy, WLAN, Bootreihenfolge). Bei jeder Frage steht der Default in […] — Enter =
übernehmen. Beim erneuten Lauf sind alle bisherigen Antworten vorbefüllt (inkl.
WLAN-SSIDs + Passwörter). Am Ende: Dry-Run-Vorschau, Speichern, optional anwenden.
# Vorschau ohne Änderung (immer zuerst empfohlen):
lmn-gpo apply --config /etc/linuxmuster/lmn-gpo/site.yaml --dry-run
# Wirklich anwenden:
lmn-gpo apply --config /etc/linuxmuster/lmn-gpo/site.yaml --yes
# Nur die Schul-Packs einer Schule (--school für mehrere wiederholen):
lmn-gpo apply --school schule1 --pack 07-admins-schule --pack 12-proxy-student-schule --yes
# Nur bestimmte globale Packs (erreichen alle Schulen, unabhängig von --school):
lmn-gpo apply --pack 02-updates --pack 17-ntp-zeit --yesOhne --config nutzt apply/setup automatisch /etc/linuxmuster/lmn-gpo/site.yaml.
--school grenzt die Schul-Packs (scope: school, alle *-schule) auf die genannten
Schulen ein. Globale Packs hängen an OU=SCHOOLS und erreichen alle Schulen; --school
begrenzt sie nicht. --pack nimmt Katalog-IDs (ls /usr/share/lmn-gpo/catalog).
Jedes Pack taucht in der Ausgabe auf: ein optionales Pack, dessen Feature nicht aktiviert ist,
steht mit skipped: <welcher site.yaml-Schlüssel fehlt> da, ein Pack, dessen Ausschlussgruppe
in seinem Geltungsbereich fehlt, mit held back (siehe Voraussetzungen prüfen).
Idempotent: apply beliebig oft ausführen – ein zweiter Lauf erzeugt keine neuen GPOs,
schreibt keine Registry-Werte neu und bumpt keine Versionen; nur echte Abweichungen werden
korrigiert.
lmn-gpo remove --dry-run # zeigt, was entfernt würde
lmn-gpo remove --yes # entfernt ALLE LMN-*-GPOs restlos (Default-/sophomorix-GPOs bleiben)
lmn-gpo remove --school schule1 --yes # nur die Schul-GPOs von schule1 (LMN-*-schule1-*)
lmn-gpo remove --pack 12-proxy-student-schule --yes # ein Pack, in allen Schulen
lmn-gpo remove --school schule1 --pack 07-admins-schule --yes # ein Pack, eine Schule--school folgt derselben Regel wie apply --school: es wählt die Schul-GPOs der genannten
Schulen und rührt globale GPOs (LMN-*-GLOBAL-*), die alle Schulen teilen, nie an. Ein
globales Pack entfernt --pack <id> ohne --school. Ein unbekannter Schulname wird abgelehnt.
Was remove nicht zurücknehmen kann. Alles, was die Packs unter einen der vier
…\Policies\…-Zweige schreiben, räumt die Registry-CSE von Windows beim nächsten
gpupdate/Anmelden restlos ab — GPO weg, Wert weg. Werte außerhalb dieser Zweige
tätowieren: Sie bleiben dauerhaft am Client stehen. In diesem Katalog sind das der
Rollen-Proxy (HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings:
ProxyEnable, ProxyServer, ProxyOverride — an einem Windows-11-Client nach einem
vollständigen remove gemessen) und der KMS-Host. Pro Profil bzw. Rechner aufräumen:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f
slmgr.vbs /ckms :: Windows-KMS-Host
cscript ospp.vbs /remhst :: Office-KMS-HostFür ein Profil, an dem niemand angemeldet ist: reg load HKU\tmp C:\Users\<user>\NTUSER.DAT,
die Werte unter HKU\tmp\… löschen, danach reg unload HKU\tmp.
Der Assistent erzeugt die Datei; sie lässt sich auch von Hand pflegen und pro Kunde wiederverwenden. Vollständige Referenz:
schools: null # null = alle erkannten Schulen, sonst [schule-a, schule-b]
packs: null # null = ganzer Katalog, sonst Liste von Pack-IDs
fwsource: serverip # Firewall-Quelle für Remote-Mgmt: serverip | subnet | <IP/CIDR>
teachernb: nopxe # Lehrer-Notebook-Gruppe (ausgenommen von Energie/Sperre/Proxy/PSK-WLAN):
# nopxe = die d_nopxe-Gerätegruppe der Schule | <CN> = gleichnamige Gruppe
# in jeder Schule | skip = es gibt KEINE Lehrer-Notebooks (kein Ausschluss)
kmshost: "kms.schule.de" # leer = kein KMS (Windows)
kms_port: "1688" # Windows-KMS-Port
kms_office_host: "" # leer = kmshost verwenden; nur für einen eigenen Office-KMS setzen
kms_office_port: "1688" # Office-KMS-Port
wallpaper_dir: "" # leer = repo wallpapers/ (Datei: <schule>.jpg, Fallback default.jpg)
firefox_enabled: true
firefox_homepage: "https://start.schule.de"
firefox_homepage_locked: true
firefox_homepage_by_school: { schule-a: "https://a.schule.de" }
proxy_enabled: true
proxy_host: "proxy.schule.de"
proxy_host_by_school: { schule-b: "proxy-b.schule.de" }
proxy_port_by_role: { teacher: 3128, student: 3129, staff: 3130 }
proxy_exceptions: "" # leer = sinnvoller Default (<local> + *.<realm> + private Netze)
veyon_binddn: "CN=global-veyon,OU=Management,OU=GLOBAL,DC=..."
veyon_bindpw_hex: "…" # via lmn-gpo veyon-encrypt-password
wlan_psk_networks: # beliebig viele — je Standort ein Eintrag
- { ssid: "SCHULE1-LINBO", psk: "…" }
- { ssid: "SCHULE2-LINBO", psk: "…" }
wlan_enterprise_ssid: "Lehrer-WLAN" # leer = kein Enterprise-WLAN
wlan_enterprise_servernames: "radius.schule.de"
wlan_enterprise_ca_cert: "/pfad/zur/radius-ca.pem"
bootorder_pxe_first: false # true = UEFI-Bootreihenfolge auf Netzwerk/PXE zuerst (opt-in!)
display_off_seconds: 0 # Display nach N s abschalten; 0 = nie (Sperre bleibt, siehe 04)
ntp_mode: ntp # Zeitsync: ntp (expliziter Server, Standard) | nt5ds (signiert, braucht ntp_signd)
pointandprint_enabled: false # true = Schüler dürfen Druckertreiber von den Druckservern installieren (opt-in)
printservers_extra: [] # zusätzliche/externe Druckserver-FQDNs (der lokale Server wird automatisch erkannt)
drives_enabled: false # true = feste Laufwerke aus drives_file (Pack 20-drives, opt-in)
drives_file: "" # "" = /etc/linuxmuster/lmn-gpo/drives.yaml (absoluter Pfad)
office_trusted_enabled: true # Netzlaufwerke als vertrauenswürdige Office-Speicherorte (Pack 21, standardmäßig an)
office_trusted_apps: [access] # beliebig aus access, excel, word, powerpoint
office_trusted_roles: all # all | Liste aus teacher, student, staff
office_trusted_forms: [unc, letter] # UNC-Pfad + Laufwerksbuchstabe (Standard); dfs für das DFS-Ziel
edulution_trusted_enabled: true # edulution in der Zone Vertrauenswürdige Sites (Pack 22, standardmäßig an)
edulution_host: "" # z. B. edulution.schule.de; "" = Pack übersprungen
edulution_host_by_school: {} # je Schule { schule2: "edu.schule2.de" }Die
site.yamlenthält Geheimnisse (WLAN-PSKs, verschlüsseltes Bind-Passwort) und ist in.gitignore— nicht einchecken. Am besten unter/etc/linuxmuster/lmn-gpo/(außerhalb des Repos) halten.
Die immer aktiven Pakete brauchen keine Einstellung. Für die optionalen hier die
Kurzanleitungen (jeweils Schlüssel in site.yaml, dann apply).
kmshost: "kms.schule.de" # Windows
kms_office_host: "" # Office — leer = derselbe Host wie Windows
kms_port: "1688" # optional
kms_office_port: "1688" # optionalSetzt den KMS-Host und aktiviert Windows per Startskript (slmgr /ato).
Office braucht einen eigenen Eintrag. Windows und Office sind getrennte Produkte mit getrennten Registry-Schlüsseln — die Windows-Einstellung aktiviert Office nicht:
| Registry-Schlüssel (HKLM) | |
|---|---|
| Windows | SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform |
| Office | Software\Microsoft\OfficeSoftwareProtectionPlatform |
Da meist ein KMS-Server beides aktiviert, fällt kms_office_host auf kmshost zurück,
solange es leer bleibt; setze es nur, wenn Office über einen anderen Host läuft. Der
Assistent fragt beides ab und akzeptiert host oder host:port.
Abgedeckt ist volumenlizenziertes Office LTSC 2024 / LTSC 2021 / 2019 / 2016 (MSI und Click-to-Run, inkl. Project und Visio). Volumen-Office bringt seinen Produktschlüssel (GVLK) bereits mit, es ist also nichts weiter nötig. Microsoft 365 Apps (Abo) wird gar nicht per KMS aktiviert und automatisch übersprungen. Eine ADMX-Richtlinie dafür gibt es nicht — die offiziellen Office-Vorlagen enthalten keine einzige KMS-Einstellung, die Registry-Werte sind also der einzige Gruppenrichtlinien-Weg.
Zwei Betriebshinweise, die die meisten „aktiviert nicht"-Fälle erklären:
- Unterschiedliche Schwellen: Office aktiviert, sobald der KMS-Host ≥ 5 Clients gezählt hat, Windows braucht ≥ 25.
- Die Werte tätowieren. Beide Schlüssel liegen außerhalb der vier
…\Policies\…-Zweige und werden daher nicht zurückgenommen, wenn die GPO nicht mehr greift. Das Leeren vonkms_office_hostentfernt die GPO auf dem Server (siehe unten); auf einem Client räumtospp.vbs /remhst(Office) bzw.slmgr.vbs /ckms(Windows) auf.
Das Leeren einer Einstellung wirkt jetzt wirklich: Ein Paket, dessen Voraussetzung weggefallen ist, wird beim nächsten
applyentlinkt und gelöscht, statt still den alten Wert weiter auszurollen.
Lege die Bilder als wallpapers/<schule>.jpg ab (Fallback wallpapers/default.jpg), oder
setze wallpaper_dir auf ein eigenes Verzeichnis. Das Toolkit kopiert sie nach NETLOGON und
setzt Desktop- und Anmelde-Hintergrund je Schule. (Die Bilder selbst sind nicht im Repo.)
firefox_enabled: true
firefox_homepage: "https://start.schule.de" # optional
firefox_homepage_locked: true # optional, sperrt die Startseite
firefox_homepage_by_school: { schule-a: "https://a.schule.de" } # optional, pro SchuleFirst-Run/Import-Assistenten aus, saubere New-Tab-Seite (Suche + Verknüpfungen, kein
Werbekram), optionale gesperrte Startseite. firefox_enabled: true schaltet beide
Firefox-Packs ein; das Startseiten-Pack (11-firefox-homepage-schule) braucht zusätzlich eine
URL. Eine URL ohne firefox_enabled wird ignoriert — apply gibt dafür skipped: firefox_enabled is not true (the configured homepage … is ignored) aus.
proxy_enabled: true
proxy_host: "proxy.schule.de"
proxy_host_by_school: { schule-b: "proxy-b.schule.de" } # optional
proxy_port_by_role: { teacher: 3128, student: 3129, staff: 3130 }Adresse folgt dem Gerät (Proxy-Host je Schule, per Loopback), Port folgt dem Nutzer
(Lehrer/Schüler/Staff je Port, exklusiv auf role-* gefiltert) — roaming-tauglich. Edge,
Chrome und Firefox werden auf den Windows-System-Proxy gestellt; der Proxy-Host landet als
Intranet-Zone für automatisches SSO. Der Schüler-Lockdown verhindert,
dass Schüler den Proxy entfernen.
Intranet-Zone für den Proxy (
12-proxy-zone-schule), korrigiert in 7.3.8. Windows wendet die Liste der Site-zu-Zonen-Zuweisungen nur über die clientseitige Erweiterung Internet Explorer Zonemapping an. Bis 7.3.7 trug die GPO sie nicht: Der Wert kam in der Registry an, der Proxy-Host blieb in der Internetzone (gemessen unter Windows 11). Ab 7.3.8 trägtapplysie ein und erhöht die GPO-Version, auch bei vorhandenen GPOs; nach dem nächstenapplyund einer Richtlinienaktualisierung liegt der Proxy wirklich in der Zone Lokales Intranet. Nebenwirkung (gemessen unter Windows 11): Solange eine Zonenliste für den Computer wirkt, nutzt Windows nur die Sites aus der GPO. Eine Site, die ein Benutzer selbst unter Vertrauenswürdige Sites eingetragen hatte (Internetoptionen › Sicherheit › Sites), fiel von Zone 2 auf die Internetzone, sobald die Liste der GPO wirkte; der Eintrag des Benutzers bleibt in der Registry und wird ignoriert. Laut Microsoft gilt dasselbe für lokal am Rechner gesetzte Sites, und Benutzer können keine Sites hinzufügen. Details:docs/RESEARCH.mdAbschnitt 10.
Lehrer-Notebooks (teachernb, standardmäßig die Gerätegruppe d_nopxe) sind von allen
Proxy-Paketen ausgenommen. Sie verlassen das Schulnetz, wo der Schul-Proxy nicht erreichbar
ist — und weil der Proxy im echten WinINET-Schlüssel landet (nicht unter …\Policies\…),
tätowiert er: er bliebe auswärts gesetzt und schnitte das Notebook vom Internet ab.
Tragen diese Notebooks aus einem früheren Rollout schon einen Proxy, räumt das Entfernen der Richtlinie ihn nicht weg. Einmalig pro betroffenem Profil zurücksetzen, z. B.
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f.
12-proxy-student-schule,12-proxy-teacher-schuleund12-proxy-staff-schulewerden anOU=Devices,OU=<schule>verlinkt — genau dadurch kann die Adresse dem Gerät folgen, während der Port der Rolle des Benutzers folgt.OU=Devicesist aber ein Geschwister vonOU=Students/OU=Teachersund nie ein Vorfahre eines Benutzerobjekts: Ihre HKCU-Werte erreichen einen Benutzer ausschließlich über Loopback-Verarbeitung. Auf denselben Rechnern muss deshalb ein Pack aktiv sein, das Loopback einschaltet:12-proxy-base(kommt mitproxy_enabled: truemit) oder15-lockdown-base.Wichtig, sobald
packs:in dersite.yamlfest gesetzt ist: Eine Liste nur mit den Schul-Proxy-Packs erzeugt GPOs, die korrekt angelegt, verlinkt und gefiltert sind — und niemanden erreichen. Seit 7.3.2 sagenapplyunddoctordas („Loopback prerequisite"); vorher meldeten sie schlicht Erfolg. Am Client sichtbar alsHKLM\SOFTWARE\Policies\Microsoft\Windows\System!UserPolicyMode = 0x1(Merge).
RADIUS-EAP-CA auf dem Server exportieren und dem Toolkit den Pfad geben — alles, was man sonst am Client durchklickt, erledigt dann die GPO:
lmnradius ca export --out /etc/linuxmuster/lmn-gpo/eap-ca.pemwlan_enterprise_networks:
- ssid: "MSG-LEHRER"
servernames: "radius.evsvbz.org"
ca_cert: "/etc/linuxmuster/lmn-gpo/eap-ca-msg.pem"
- ssid: "GSG-LEHRER"
servernames: "radius-gsg.evsvbz.org"
ca_cert: "/etc/linuxmuster/lmn-gpo/eap-ca-gsg.pem"One entry per site, each with its own RADIUS CA (sites sharing a RADIUS just reference the
same file). Order is the connection preference. Because the pack is scope: global and
filtered to @teachernb, every teacher notebook receives all of these profiles and all of
these CAs — so a teacher roaming to another school connects there too. The older single-key
form (wlan_enterprise_ssid / _servernames / _ca_cert) still works and is folded into a
one-element list.
lmn-gpo apply --pack 13-wlan-enterprise --yes| Schritt von Hand | Was das Paket macht |
|---|---|
| CA in Lokaler Computer → Vertrauenswürdige Stammzertifizierungsstellen | certutil -addstore -f Root, läuft als SYSTEM = Maschinenspeicher |
| Nur diese eine Stamm-CA anhaken | TrustedRootCA=<SHA-1> pinnt genau dieses Zertifikat |
| Servername eintragen | ServerNames |
| „Benutzer bei neuen Servern fragen" aus | DisableUserPromptForServerValidation=true |
| SSO-Häkchen | singleSignOn / preLogon |
apply gibt aus, welches Zertifikat gepinnt wird (RADIUS CA pinned: subject=... SHA1 ...) —
prüf dort, dass es wirklich die EAP-CA ist. Eine falsche Datei wurde früher stillschweigend
akzeptiert und ergab einen Fingerabdruck über Datenmüll; der Client verweigert dann die
Verbindung ganz ohne Rückfrage, weil das Nachfragen bewusst abgeschaltet ist. Das ist jetzt
ein harter Fehler.
Das Lehrer-WLAN kann nicht vor dem Login stehen, daran ändert keine Einstellung etwas. Es authentifiziert den Benutzer (
authMode=user), und vor der Anmeldung gibt es keinen.preLogonheißt: Die 802.1X-Anmeldung läuft während der Windows-Anmeldung mit den gerade eingetippten Daten — nicht, dass die Verbindung am Anmeldebildschirm schon steht. Die erste Lehrer-Anmeldung auf einem Notebook braucht deshalb einmal Kabel oder ein anderes Netz. Nur eine Computerkonto-Authentifizierung würde früher verbinden, dafür braucht der RADIUS eine Richtlinie für Domänencomputer.
Aufteilung der zwei Pakete.
13-wlan-pskverteilt die PSK-Netze als All-User-Profile (Maschinenprofile), LINBO/PXE-Rechner verbinden sich also vor dem Login. Ausgeliefert wird per selbstheilender geplanter Aufgabe (LMN-GPO-WlanProfiles, Boot + alle 15 Min + Anmeldung), nicht als Einmalschuss beim Start:netshbraucht ein WLAN-Interface, der Profilspeicher liegt pro Interface inWlanSvc, undWlanSvcist trigger-gestartet — ein reiner Boot-Import tut also stillschweigend nichts, wenn der Adapter noch nicht da ist. Die Aufgabe startet zusätzlichWlanSvc, aktiviert einen deaktivierten Adapter und setzt die Verbindungsreihenfolge (erstes Netz auswlan_psk_networks= Priorität 1). Log:%SystemRoot%\Temp\lmn-gpo-wlan.log.13-wlan-enterpriseauthentifiziert den Benutzer (PEAP + SSOpreLogon), Lehrer- Notebooks verbinden sich daher beim Login, nicht davor. Beide Ausschlüsse folgenteachernb(standardmäßig die Gerätegrupped_nopxe).Das Schüler-PSK ist vor deinen Schülern kein Geheimnis. Es steht im Klartext im Profil- XML innerhalb des Startskripts in sysvol.
filter_deny_read: ['@role-student']entzieht Schülern den Lesezugriff auf das GPO-Objekt, abersamba-tool ntacl sysvolresetschreibt eine feste ACL-Vorlage, in der Authenticated Users Lesezugriff auf die Datei behalten — auf einem echten DC nachgemessen. Wenn das nicht akzeptabel ist: Profil ins LINBO-Image vorbereiten oder das Schülernetz auf WPA2-Enterprise umstellen.
Mehrere Schüler-WLANs (z. B. je Standort ein eigenes) sind einfach mehrere Einträge in
wlan_psk_networks:
wlan_psk_networks:
- { ssid: "SCHULE1-LINBO", psk: "PSK-für-SCHULE1" }
- { ssid: "SCHULE2-LINBO", psk: "PSK-für-SCHULE2" }Das Pack 13-wlan-psk ist bewusst global: alle PSK-Profile landen als Maschinen-
Profile (connectionMode auto, verbinden vor dem Login) auf jedem Schüler-Gerät — außer
Lehrer-Notebooks (d_nopxe). Dadurch roamt ein Notebook automatisch: es verbindet sich an
jedem Standort mit der SSID, die dort in Reichweite ist. Wirksam nach Neustart des Clients.
Preis des Roamings: jedes Gerät trägt alle PSKs im lokalen Profilspeicher. Strikte Pro-Schule-Isolierung und Roaming schließen sich technisch aus.
Lehrer-WLAN (WPA2-Enterprise):
wlan_enterprise_ssid: "Lehrer-WLAN"
wlan_enterprise_servernames: "radius.schule.de" # Name(n) im RADIUS-Serverzertifikat
wlan_enterprise_ca_cert: "/pfad/zur/radius-ca.pem" # CA-Zert wird am Client installiertPEAP-MSCHAPv2 mit User-Auth + SSO; nur Lehrer (der RADIUS erzwingt die Gruppe), exklusiv
auf d_nopxe. Hinweis: der allererste Lehrer-Login an einem Notebook braucht einmalig
Kabel/anderes Netz (reine User-Auth), danach WLAN-SSO.
Vollständig per Registry-GPO (kein config.json, dateiloses LDAP-Directory), Multischule-fähig
mit Roaming: BaseDN = Domänenwurzel, ComputerTree pro Schule (Raumliste schulscharf),
Gruppen/Nutzer global — ein Lehrer darf so an jeder Schule den Master öffnen.
Einrichten:
lmn-gpo veyon-encrypt-password # Bind-Passwort verschlüsseln -> Hex kopierenveyon_binddn: "CN=global-veyon,OU=Management,OU=GLOBAL,DC=..."
veyon_bindpw_hex: "<Hex>"- Zugriff nur für Lehrer: autorisiert
all-teachersundrole-teacherals BaseDN-relative DNs (CN=role-teacher,OU=Groups,OU=GLOBAL, ohne,DC=…), weil Veyon intern so vergleicht;QueryNestedUserGroups=truelöst auch verschachtelte Mitgliedschaft auf. Ein Schüler ist in keiner Gruppe → kann nie steuern. - Bind-User
global-veyondediziert und read-only halten: Veyons Bind-Passwort ist mit einem statischen, öffentlichen Schlüssel verschlüsselt — also umkehrbar (Details:docs/VEYON-PLAN.md). - Windows-Firewall bleibt für Veyon (Port 11100) offen; die Standort-Trennung macht die OPNsense.
- Nach dem Ausrollen: am Client
gpupdate /forceund den Veyon-Dienst neu starten (Reboot) — Veyon liest die Config nur beim Dienststart.
Automatisch mit Veyon aktiv (Paket 10b-veyon-bandwidth-schule), in site.yaml anpassbar:
veyon_monitoring_interval_ms: 2000 # Kachel-Aktualisierung (Veyon-Default 1000)
veyon_monitoring_quality: 3 # Kacheln 0=Highest(verlustfrei) .. 4=Lowest
veyon_remote_quality: 2 # Fernzugriff (Veyon-Default 0 = verlustfrei!)Veyon kennt keine „Auflösung heruntersetzen"-Einstellung und kann sinnvollerweise keine haben. Der Master empfängt von jedem Schüler-PC das vollständige Bild und verkleinert es erst danach lokal; die Kachelgröße ist eine Benutzer-JSON-Einstellung, kein Registry-Wert. Kleinere Kacheln sparen also nichts auf der Leitung. Die beiden wirksamen Hebel sind, wie oft ein Bild geholt und wie stark es komprimiert wird — genau das setzt dieses Paket. Grob 3-5× weniger Last in einem belebten Raum.
Beide Schlüssel liest der Veyon-Master, also der Lehrer-PC — dieser Rechner muss in der
OU=Devices der Schule stehen, was zutrifft, wenn Lehrer die normalen Klassenraum-Rechner
nutzen. Das Intervall wird anschließend an die Clients weitergereicht, deren Veyon-Server zu
frühe Anfragen selbst verwirft; die Daten entstehen also gar nicht erst.
Braucht Veyon >= 4.8 auf beiden Seiten: Meldet sich ein Client als älter, fällt der Master
stillschweigend auf verlustfrei zurück. Prüfen mit veyon-cli config get Core/ApplicationVersion.
Zwei Pakete sorgen dafür, dass nur Schüler (role-student) bestimmte Windows-Einstellungen
nicht ändern können, Lehrer und Admins aber uneingeschränkt bleiben (immer aktiv):
15-lockdown-base(Computer): aktiviert Loopback-Merge (UserPolicyMode=1), damit benutzerbasierte, rollengefilterte Richtlinien auf gemeinsam genutzten Klassenrechnern greifen. Die Werte stammen von Microsoft: 1 = Merge, 2 = Replace (der Client nennt den Modus im Ereignis 5311). Merge behält die eigenen GPOs des Benutzers und legt die Benutzer- einstellungen des Rechners darüber; Replace würde jede GPO aus dem OU-Pfad des Benutzers fallen lassen. lmn-gpo schreibt Replace nur, wenn ein Pack ausdrücklichloopback: replacedeklariert — kein Katalog-Pack tut das.15-lockdown-student(User, exklusiv aufrole-student): reine HKCU-Policies — Proxy nicht änderbar (Einstellungen-App und Internetoptionen), Verbindungen-Tab & PAC gesperrt, Registry-Editor gesperrt.
Strenger geht per zusätzlicher HKCU-Einträge in catalog/15-lockdown-student.yaml:
| Wirkung | Registry (class: user) |
|---|---|
| Systemsteuerung + Einstellungen ganz ausblenden | …\Policies\Explorer\NoControlPanel = 1 |
| Eingabeaufforderung sperren | …\Policies\Microsoft\Windows\System\DisableCMD = 1 |
| Task-Manager sperren | …\Policies\System\DisableTaskMgr = 1 |
| Hintergrundbild-Wechsel sperren | …\Policies\ActiveDesktop\NoChangingWallPaper = 1 |
15-lockdown-student ist ein globales Pack: Es hängt an OU=SCHOOLS, dem gemeinsamen
Vorfahren der Geräte- und der Benutzer-OUs, und erreicht Schüler deshalb auch ohne Loopback.
15-lockdown-base wird trotzdem gebraucht — für die schulbezogenen Benutzer-Packs
(Rollen-Proxy, siehe Rollen-Proxy) und für gerätegebundene Benutzer-
einstellungen auf gemeinsam genutzten Rechnern.
Gegen Windows 11, das seinen Boot Manager nach jedem Start wieder an die erste Stelle drängt (Rechner booten dann direkt in Windows statt LINBO). Opt-in:
bootorder_pxe_first: trueWeil der GPO-Startskript-Kontext ein abgespecktes Token hat (kein Zugriff auf die UEFI-NVRAM),
ist es zweistufig gelöst: das GPO-Skript registriert einen Scheduled Task (SYSTEM,
höchste Rechte, beim Systemstart), der mit vollem Token die eigentliche bcdedit-Umsortierung
macht (Netzwerk/PXE nach vorne, Windows Boot Manager ans Ende). Robuste Muster-Erkennung
(IPV4/IPV6/PXE/…), idempotent, bricht den Boot nie ab.
Hardwareabhängig — erst auf EINEM Gerät testen. Nach
gpupdate /force+ 2× Neustart:schtasks /query /tn LMN-GPO-BootOrderPXE(Task da?) undtype %SystemRoot%\Temp\lmn-gpo-bootorder.log(hat der Worker die Netzwerk-Einträge gefunden und umsortiert?). Voraussetzung: Fast Startup aus (Paket05-wol/ BIOS), kein BitLocker mit Windows-Boot-Manager-Zwang.
ntp_mode: ntp # Standard: expliziter NTP gegen den Server. Alternative: nt5dsWarum normales NTP der Standard ist. nt5ds ist Microsofts „Domänen-Weg": Der Client holt
die Zeit aus der Domänenhierarchie und verlangt, dass die Antwort mit seinem Computerkonto
signiert ist. Ein Samba-DC kann das nur über den ntpsigndsocket von ntpd, und diese Kette
bricht auf einem Ubuntu-24.04-Server leicht. Passiert das, verwirft der Client jede Antwort und
bleibt dauerhaft auf Local CMOS Clock, während die Uhr über die 5-Minuten-Kerberos-Grenze
wegläuft — ohne Fehlermeldung, denn die GPO selbst ist korrekt angekommen. Im Feld beobachtet.
Zwei bekannte Ursachen, beide serverseitig:
ntpdwendet nur die spezifischste passenderestrict-Zeile an und ersetzt deren Flags. Ein nacktesrestrict 10.10.40.0/24nimmt damit genau diesem Subnetz dasmssntp, obwohlrestrict -4 default ... mssntpin der Datei steht.- Ubuntu 24.04 liefert ntpsec 1.2.2 aus, dessen MS-SNTP-Behandlung als defekt gemeldet ist (upstream erst ab 1.2.3 behoben).
Diagnose am Client mit w32tm /query /source. Steht dort Local CMOS Clock, während
w32tm /stripchart /computer:<server> /samples:3 Werte liefert, funktioniert normales NTP und
nur die Signierung scheitert — genau das umgeht ntp_mode: ntp.
Auf nt5ds erst umstellen, wenn ein Client den Server wirklich als Quelle anzeigt.
Abwägung: Bei normalem NTP ist die Zeit nicht authentifiziert, jemand im LAN könnte also
NTP-Antworten fälschen.
Behebt „nicht alle Uhrzeiten stimmen" (immer aktiv). Kern-Fix:
MaxPos/NegPhaseCorrection = 0xFFFFFFFF → W32Time korrigiert auch große Versätze (typisch
bei leeren BIOS/CMOS-Batterien); ohne das holt ein weit abgedrifteter Client nie wieder auf.
Nur für Clients (an OU=SCHOOLS); der DC bleibt unberührt.
Am Client prüfen: w32tm /query /source und w32tm /query /status.
Secure Time Seeding aus (seit 7.3.7, UtilizeSslTimeData = 0). Ab Werk stellt Windows
10/11 die Uhr zusätzlich nach Zeitangaben seiner ausgehenden TLS-Verbindungen („Secure Time
Seeding"). Microsoft liegen Berichte vor, dass diese Heuristik Uhren um Tage bis Jahre
verstellt hat, empfiehlt das Abschalten auf Windows Server und liefert Windows Server 2025
mit abgeschaltetem STS aus; für Windows 10/11 überlässt es die Entscheidung dem Admin. Springt
eine Client-Uhr um mehr als 5 Minuten, lehnt Kerberos ihre Tickets ab: Der Proxy fragt wieder
nach dem Passwort (squid-cache.log: Clock skew too great), Dateizugriffe scheitern. Unsere
Clients haben den Schulserver als Zeitquelle und brauchen das nicht. Der Preis: Ein Rechner
mit leerer CMOS-Batterie, der den Schulserver nie erreicht (Laptop zu Hause), schätzt die Zeit
nicht mehr aus dem Internet. Microsoft nennt für diesen Wert einen Neustart als nötig (der
Zeitdienst nutzt die TLS-Zeitdaten schon nicht mehr, sobald er die Richtlinie übernimmt; der
Neustart beendet auch das Sammeln).
Von 7.3.6 oder älter kommend: einmal lmn-gpo apply --pack 17-ntp-zeit --yes (das
Paket-Upgrade wendet nichts neu an), dann gpupdate /force und die Clients neu starten.
lmn-gpo-check.ps1 zeigt den Wert (und was der Zeitdienst zuletzt gemeldet hat) und meldet
einen Fehler, solange er fehlt oder nicht 0 ist.
Standardmäßig aus (Pack 20-drives, neu in 7.3.6). Es verbindet die Laufwerke, die ihr
in /etc/linuxmuster/lmn-gpo/drives.yaml eintragt — Buchstabe, UNC-Pfad, Bezeichnung,
Gruppen — und kann die linuxmuster-Standardlaufwerke (K: Programme, P: Projekte, S: Schüler,
T: Tauschen, R: ISO) für alle oder für bestimmte Gruppen abschalten. Das wirkt an jeder Schule
gleich und folgt dem Benutzer: Eine Lehrkraft, die sich an einem Rechner einer anderen
Schule anmeldet, behält genau ihre Laufwerke.
# site.yaml (der Assistent fragt; wer eine feste 'packs:'-Liste hat, nimmt 20-drives dort auf)
drives_enabled: true
drives_file: /etc/linuxmuster/lmn-gpo/drives.yaml # optional, das ist der Standardmkdir -p -m 0700 /etc/linuxmuster/lmn-gpo # gibt es schon, sobald 'lmn-gpo setup' lief
# --update=none: überschreibt nie eine vorhandene drives.yaml
cp --update=none /usr/share/doc/lmn-gpo/examples/drives.yaml.example /etc/linuxmuster/lmn-gpo/drives.yaml
editor /etc/linuxmuster/lmn-gpo/drives.yaml # Pfade und Gruppen; Zeile 'example: true' löschen
lmn-gpo doctor # Abschnitt "Drive maps": Datei, Gruppen, Freigaben, Reihenfolge
lmn-gpo apply --pack 20-drives --dry-run # Tabelle der Laufwerke, das XML, der Link
lmn-gpo apply --pack 20-drives --yesKein Beispiel unter /usr/share/doc? Minimierte Ubuntu-Installationen schließen /usr/share/doc
aus (/etc/dpkg/dpkg.cfg.d/excludes): Von /usr/share/doc/lmn-gpo werden nur copyright und
changelog.gz installiert, die Beispieldatei fehlt. Sie in eine neue Datei holen — das fasst
eine vorhandene drives.yaml nie an. Entweder aus dem installierten .deb, mit genauem Namen (im
Verzeichnis dieser Datei ausführen; 7.3.6 durch eure Version ersetzen, lmn-gpo --version):
dpkg-deb --fsys-tarfile ./lmn-gpo_7.3.6_all.deb \
| tar -xO ./usr/share/doc/lmn-gpo/examples/drives.yaml.example > /root/drives.yaml.exampleoder von GitHub, beim Tag eurer Version (den gibt es, sobald die Version veröffentlicht ist):
curl -fsSLo /root/drives.yaml.example https://raw.githubusercontent.com/faircomp/linuxmuster-gpo-template/v7.3.6/examples/drives.yaml.exampleDanach selbst nach drives.yaml kopieren, wie oben mit /root/drives.yaml.example als Quelle:
cp --update=none /root/drives.yaml.example /etc/linuxmuster/lmn-gpo/drives.yaml.
drives.yaml ist bewusst eine eigene Datei: lmn-gpo liest sie nur, Kommentare und Reihenfolge
bleiben erhalten (setup schreibt site.yaml neu), und sie enthält keine Geheimnisse — sie darf
versioniert oder zwischen Servern kopiert werden. Wie site.yaml ist sie keine Conffile des Pakets.
| Schlüssel | Bedeutung |
|---|---|
version: 1 |
Pflicht |
linuxmuster_defaults.remove |
all · eine Liste wie [K, P, R] · [] (Standard: behalten). all = jeder Buchstabe, den eine sophomorix:school:<schule>-GPO verbindet — beim apply gelesen, also auch in der WebUI umgestellte Buchstaben — plus K P R S T. H: lässt sich nie abschalten. |
linuxmuster_defaults.for_groups |
nur für Mitglieder dieser Gruppen abschalten (eine genügt); [] = für alle |
drives[].letter |
D–Z. H: nur mit home: true (sophomorix gibt jedem Konto homeDrive H:) |
drives[].path |
UNC-Pfad in einfachen Anführungszeichen, '\\server\freigabe[\ordner]'. @server = NetBIOS-Name dieses Servers in Kleinbuchstaben (so schreibt sophomorix seine eigenen Laufwerke), @serverfqdn = sein FQDN. %VARIABLEN% gehen unverändert an den Client. |
drives[].home: true |
H: = das eigene homeDirectory des Benutzers, genau der Eintrag aus Pack 19-home-h (Update) |
drives[].label |
Bezeichnung im Explorer (Umlaute gehen). Windows speichert Bezeichnungen pro UNC-Pfad, nicht pro Buchstabe: Zwei Buchstaben auf denselben Pfad zeigen dieselbe Bezeichnung (die zuletzt geschriebene), z. B. ein T: von sophomorix und euer M:, beide auf \\server\<schule>\share. |
drives[].groups |
sAMAccountNames, eine davon genügt; keine = alle Benutzer. Auch @role-teacher, @role-student, @role-staff oder eine SID. |
drives[].devices |
optional Gerätegruppen (eine genügt): nur auf diesen Rechnern |
drives[].action |
replace (Standard) oder update. Ersetzen löscht die Zuordnung und legt sie neu an; ein Buchstabe, den sophomorix oder der Benutzer schon anders belegt hat, zeigt danach auf euren Pfad. Aktualisieren hängt einen schon anders belegten Buchstaben nicht um — er bleibt, wo er war, und der Client protokolliert den Eintrag trotzdem als erfolgreich angewendet (unter Windows 11 gemessen). Deshalb ist replace der Standard; update nur dort, wo eine bestehende Zuordnung nie angefasst werden darf. |
drives[].reconnect |
true = dauerhafte Verbindung (Windows speichert sie in HKCU\Network), geschrieben mit „Element entfernen, wenn es nicht mehr angewendet wird", Windows entfernt sie also wieder, sobald die GPO für den Benutzer nicht mehr gilt |
Derselbe Buchstabe darf mehrfach vorkommen: Der erste passende Eintrag gewinnt (spätere
Einträge tragen „und nicht ein früherer Eintrag" im Targeting). Ein Eintrag ohne Gruppen und
Geräte muss deshalb der letzte für seinen Buchstaben sein, sonst wird die Datei abgelehnt.
Unbekannte Schlüssel, ein Schlüssel off: (YAML liest off als false — der Schlüssel heißt
remove), ein Pfad, der kein UNC-Pfad ist, C:, H: ohne home sind Fehler mit Position
(entry 3 (V:)); doctor und apply melden alle auf einmal.
Gruppennamen in der Multischule: Die Gruppen von default-school haben kein Präfix
(teachers), die jeder anderen Schule eines (gsg-teachers); globale Gruppen sind
role-teacher, role-staff, all-teachers, … und eure eigenen (sophomorix-group --create --group verwaltung). lmn-gpo löst Namen über den sAMAccountName auf, der in der Domäne eindeutig ist.
Die Freigabe einer anderen Schule braucht Rechte. lmn-gpo verbindet Laufwerke, es vergibt nie
Zugriff. Von Haus aus dürfen nur die Gruppen der eigenen Schule (<schule>-teachers,
<schule>-students, die Schulgruppe) \\server\<schule> lesen. Ein Buchstabe für eine Lehrkraft der
Schule A auf \\server\<schuleB> wird dann gar nicht verbunden: Er fehlt im Explorer und in
net use, die übrigen Laufwerke kommen wie gewohnt, und auf dem Bildschirm steht nichts. Den Grund
nennt das Anwendungsprotokoll des Clients, Quelle „Group Policy Drive Maps“: Warnung 4117
„Access denied for 'o:' to '\server\…'“ und Warnung 4098 „… wurde aufgrund eines Fehlers nicht
angewendet … 0x80070005“ für diesen Buchstaben (das RSoP, gpresult /x, führt den Eintrag trotzdem
auf). Als Admin am Client:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Group Policy Drive Maps'} -MaxEvents 30.
lmn-gpo doctor sieht das nicht, er läuft auf dem Server. Im Lab gemessen: Der Buchstabe wurde
verbunden, sobald die schulübergreifende Gruppe Leserechte auf den Ordnern der anderen Schule hatte.
Lehrkräfte auf die eigene Schule zu verbinden wie im Beispiel unten braucht nichts zusätzlich.
Liegt als /usr/share/doc/lmn-gpo/examples/drives.yaml.example bei — ein echtes Layout, ein
Beispiel, keine Vorgabe: Die Schulen msg, gsg, gym sind Zweitschulen, default-school
gibt es zusätzlich, die Verwaltung hat einen eigenen Fileserver.
version: 1
linuxmuster_defaults:
remove: all # K: P: S: T: R: (und in der WebUI umgestellte)
for_groups: [role-teacher, role-staff] # Schüler behalten sie
drives:
- {letter: H, label: Home, home: true}
- {letter: M, label: MSG Shares, path: '\\@server\msg', groups: [msg-teachers]}
- {letter: G, label: GSG Shares, path: '\\@server\gsg', groups: [gsg-teachers]}
- {letter: Y, label: GYM Shares, path: '\\@server\gym', groups: [gym-teachers]}
- {letter: V, label: Verwaltung, path: '\\verwaltung\verwaltung', groups: [verwaltung]}- Eine Benutzer-GPO für alle Schulen,
LMN-U-GLOBAL-20-drives, erzwungen (Enforced) anOU=SCHOOLSverlinkt. Ein erzwungener Link wird nach jedem nicht erzwungenen darunter verarbeitet ([MS-GPOL] 3.2.5.1.5): ohne Loopback, mit Loopback Merge, mit Replace und für eine Lehrkraft der einen Schule an einem Rechner der anderen (Merge: erst die Schule der Lehrkraft, dann die des Rechners, dann diese GPO) kommt sie nachsophomorix:school:<schule>. - Die sophomorix-GPOs werden nie angefasst. Die Standardbuchstaben entfernen Gruppenrichtlinien-Einstellungen mit der Aktion Löschen in dieser GPO, ganz am Anfang (Windows übergeht ein Löschen auf einem nicht belegten Buchstaben ohne Fehler). Ein Löschen entfernt auch eine Verbindung, die der Benutzer selbst auf diesem Buchstaben angelegt hat.
- Danach H: (
home: true, Update), danach eure Einträge in Dateireihenfolge mit Ersetzen. Jeder Eintrag ist per Zielgruppenadressierung auf seine Gruppen beschränkt, über die SID (Windows wertet die SID aus, der Name dient nur der Anzeige). Eine neue Gruppenmitgliedschaft wirkt ab der nächsten Anmeldung (Anmelde-Token). - Laufwerkszuordnungen sind Benutzerrichtlinie: Sie wirken bei der Anmeldung und mit
gpupdate. Nach einer Änderung trennt eine Hintergrundaktualisierung die Ersetzen-Laufwerke laufender Sitzungen kurz und verbindet sie neu. applysetzt den erzwungenen Link bei jedem Lauf neu, an Ort und Stelle:samba-tool gpo setlinklehnt einen bestehenden Link ab, also ändert lmn-gpo imgPLinkvonOU=SCHOOLSnur den Eintrag dieser GPO (Position und alle anderen Einträge bleiben). Wer die Erzwingung in der GPMC abschaltet, bekommt sie mit dem nächstenapplyzurück;doctorwarnt bis dahin.doctorrechnet die Verarbeitungsreihenfolge für jede Schule nach (jede Benutzer-OU ohne Loopback, Benutzer jeder Schule auf jeder Geräte-OU mit Merge, jede Geräte-OU mit Replace) und warnt, wenn irgendeine andere GPO mit Laufwerkszuordnungen später kommt — z. B. eine erzwungene GPO an der Domäne — mit GPO, Link und Buchstaben. Außerdem prüft er die Gruppenauflösung, SID-Drift (Gruppe gelöscht und neu angelegt), die ausgerollte Datei gegendrives.yaml, die Freigaben dieses Servers und die sophomorix-Schul-GPOs (auch das S: der sophomorix-Vorlage, dessen feste SID in keiner Schuldomäne existiert — unter Windows wird S: nie verbunden).
- Eine Gruppe, die sich nicht (oder nur teilweise) auflösen lässt, hält ihren Eintrag
zurück — er wird nie auf alle ausgeweitet. Gibt es die GPO schon, wird gar nichts
geschrieben („existing GPO left untouched", Exit 0, dieselbe Regel wie seit 7.3.1); ein
Tippfehler entfernt also nie ein funktionierendes Laufwerk. Eine neue GPO bekommt die
auflösbaren Einträge. Eine unbekannte Gruppe in
for_groupslässt alle Standardlaufwerke stehen. drives_enabled: true, aber die Datei fehlt oder ist ungültig: Das Pack wird übersprungen, eine vorhandene GPO bleibt, wie sie ist,applyendet mit Exit 1 und sagt warum. Das unveränderte Beispiel (example: true) wird genauso abgelehnt.
Abschalten mit drives_enabled: false + lmn-gpo apply --yes: apply zieht die GPO nach einem
samba-tool gpo backup (/var/backups/lmn-gpo) zurück. lmn-gpo remove --pack 20-drives --yes
allein schaltet nicht ab: Solange drives_enabled: true in site.yaml steht, legt das nächste
apply die GPO wieder an. remove --pack dient dazu, die Laufwerke sofort wegzunehmen, oder bewusst
nach einem zurückgehaltenen Eintrag, damit das nächste apply eine neue GPO aus den auflösbaren
Einträgen schreibt.
Bei der nächsten Anmeldung fehlen die Löschen-Einträge, sophomorix verbindet K: P: T: R: wieder.
Einträge ohne reconnect werden auf dem Client nicht gespeichert, nach dem Entfernen werden sie bei
der nächsten Anmeldung also einfach nicht mehr verbunden (in einer laufenden Sitzung bleiben sie bis
zur Abmeldung). Einträge mit reconnect: true speichert Windows in
HKCU\Network; weil sie mit „Element entfernen, wenn es nicht mehr angewendet wird" geschrieben
sind, entfernt die Laufwerkszuordnungs-Erweiterung sie bei der nächsten Anmeldung ebenfalls
(gemessen: Ereignis 4101 „… entfernt“, HKCU\Network leer).
- Nur Windows-Clients. Linux-Clients (linuxclient7) lesen nur
sophomorix:school:<eigene Schule>: Sie behalten die Standardlaufwerke und bekommen diese Laufwerke nicht (noch nicht unterstützt). Die WebUI (Clients → Laufwerke) kann Standardlaufwerke für beide deaktivieren — sie ändert die sophomorix-GPO, undsophomorix-school --gpo-createsetzt das zurück. - Keine Rechte. Ein Laufwerkseintrag gibt keinen Zugriff: Der Benutzer braucht Rechte auf der
Freigabe (
\\server\gsgfür eine msg-Lehrkraft,\\verwaltung\verwaltung), ohne sie wird der Buchstabe gar nicht verbunden (siehe oben). sophomorix setzt Rechte nur für seine eigenen Gruppen, lmn-gpo setzt keine. Für einen schulübergreifenden Buchstaben (M/G/Y für Lehrkräfte einer anderen Schule, z. B. über eine Gruppelk-gsg) die Rechte vor dem Einschalten selbst setzen. Ein Hinweis, kein Rezept: der Gruppe Lesen (oder mehr, wie gewollt) auf dem Schulordner und den Ordnern darunter geben, die sie sehen soll, durch einen zusätzlichen Eintrag — z. B. im Windows-Sicherheitsdialog, verbunden alsglobal-admin— und die Einträge von sophomorix weder ändern noch entfernen. Die Rechte der Schulordner kommen aus den Vorlagen von sophomorix, undsophomorix-repairschreibt sie neu; den zusätzlichen Eintrag nach einer Reparatur prüfen. Besser den Buchstaben auf den Ordner zeigen lassen, den die Gruppe sehen soll (\\server\gsg\share), als die ganze Schulwurzel zu öffnen. - Kein „Laufwerk ausblenden" (das schreibt
NoDrives, das die GPO überdauern würde). - Offline-Notebooks / 802.1X: wie bei 19-home-h — ohne DC bei der Anmeldung keine Laufwerke.
linuxmuster verbindet die Drucker schon selbst (sophomorix schreibt die Printers.xml
der Schul-GPO). Dieses Pack ergänzt nur das Fehlende: auf gepatchtem Windows 11 darf ein
Standard-User (Schüler) den Druckertreiber nicht installieren (PrintNightmare,
CVE-2021-34527) — der verbundene Drucker scheitert beim ersten Druck mit „Administrator
erforderlich". Aktivieren erlaubt die Treiberinstallation automatisch, aber nur von euren
Druckservern:
pointandprint_enabled: true
printservers_extra: [] # nur für einen dedizierten/externen Druckserver (FQDN)Die Vertrauensliste wird automatisch so gefüllt, wie linuxmuster verbindet (\\SERVER +
FQDN + IP) — das vermeidet den klassischen Kurzname-vs-FQDN-Fehler. printservers_extra
(FQDN, exakt wie im Druckerpfad) nur für externe Druckserver.
Sicherheit: setzt
RestrictDriverInstallationToAdministrators=0— eine bewusste, eingegrenzte Lockerung, begrenzt auf eure Server (TrustedServers=1+ServerList). Am sichersten: Treiber ins LINBO-Image vorinstallieren und dies deaktiviert lassen.
Standardmäßig an seit 7.3.8 (Pack 21-office-trusted-schule). Seit 2022 blockiert Office
VBA-Makros in Dateien aus dem Internet. Gemessen mit der Access Runtime unter Windows 11, ohne
lmn-gpo:
- Nur eine Warnung für Dateien auf H:, T: und den anderen Laufwerken und unter
\\server\<schule>\…: Windows zählt den kurzen Servernamen zu Lokales Intranet, und Access zeigt die normale Sicherheitswarnung mit Öffnen. - Harte Blockade — „Microsoft hat die Ausführung von Makros blockiert, da die Quelle dieser
Datei nicht vertrauenswürdig ist.", ohne Möglichkeit, sie zu aktivieren (die Runtime bietet nur
Abbrechen) — für Dateien mit Herkunftskennzeichnung
ZoneId=3(Browser-Downloads, etwa aus der edulution-Weboberfläche) und für Dateien, die über den FQDN des Servers\\server.<domäne>\…oder das DFS-Ziel\\fs.<domäne>\…geöffnet werden (beide in der Internetzone; „Zulassen" in den Dateieigenschaften hilft auf einer solchen Freigabe nicht).
Dieses Pack macht die Netzlaufwerke der Schule in Office zu vertrauenswürdigen
Speicherorten, standardmäßig nur für Access und für alle Rollen: Makros in Dateien, die von
dort geöffnet werden (über Buchstaben oder UNC-Pfad), laufen ohne jede Warnung — eine
Lehrkraft kann die eingesammelten Access-Datenbanken der Schüler also prüfen. Ein auf H:
gespeicherter und von dort geöffneter Download läuft ebenfalls (H: speichert keinen
Zone.Identifier). Weiter hart blockiert: über den FQDN oder das DFS-Ziel geöffnete Dateien
(außer mit dfs in office_trusted_forms, siehe unten) und lokale Dateien mit ZoneId=3. Für
Downloads von edulution ersetzt Pack 22 die harte
Blockade durch die normale Warnung.
office_trusted_enabled: true # Standard; false schaltet ab (siehe unten)
office_trusted_apps: [access] # beliebig aus access, excel, word, powerpoint
office_trusted_roles: all # oder eine Liste aus teacher, student, staff
office_trusted_forms: [unc, letter] # Standard; dfs für das DFS-Ziel ergänzen (siehe unten)Welche Laufwerke, bei jedem apply neu gelesen, je Schule:
- H: — der Freigabe-Stamm des
homeDirectoryder Benutzer der Schule (\\server\<schule>\), nicht ein Pfad pro Benutzer; - die Standardlaufwerke von linuxmuster (K: P: S: T: R:), so wie die GPO
sophomorix:school:<schule>sie verbindet — nur gelesen, ein in der WebUI abgeschaltetes Laufwerk fehlt; - bei
drives_enabled: truejeder Eintrag derdrives.yaml(auch andere Fileserver, etwa der der Verwaltung).
Jedes Laufwerk wird ein Speicherort mit „Unterordner zulassen", geschrieben als UNC-Pfad und als
Laufwerksbuchstabe (H:\). Gemessen mit Access unter Windows 11: Office prüft den Pfad so, wie
die Datei geöffnet wurde, und ein Buchstabe und der UNC-Pfad, auf den er gemappt ist, decken sich
gegenseitig ab — eine über H:\… geöffnete Datei läuft auch nur mit dem UNC-Ort, eine über
\\server\<schule>\… geöffnete auch nur mit dem Buchstaben. Optionale dritte Form dfs: Mit
linuxmuster-fileserver ist die Schulfreigabe auf dem Server ein DFS-Proxy (msdfs proxy = //fs.<domäne>/<schule> in der smb.conf, per testparm gelesen); Office löst ihn nicht auf, das Ziel
\\fs.<domäne>\<schule>\ zählt also nur für Dateien, die über diesen Namen geöffnet werden
(Verknüpfung, Link). Von keiner Form abgedeckt: über \\server.<domäne>\… (FQDN) geöffnete
Dateien — sie bleiben blockiert. Ein Pfad unterhalb eines anderen ist durch ihn abgedeckt (\\server\<schule>\share liegt in \\server\<schule>\). Office
nimmt höchstens 20 Richtlinien-Speicherorte je Anwendung: Eine Schule, die mehr bräuchte, wird
zurückgehalten (nichts geschrieben, eine vorhandene GPO bleibt wie sie ist, apply endet mit
1 und listet sie auf) — still gekürzt wird nichts. Abhilfe: weniger Laufwerke in der
drives.yaml oder weniger Formen in office_trusted_forms.
Geschrieben wird je Anwendung (Benutzer-Richtlinie, Software\Policies\Microsoft\Office\16.0\ <App>\Security\Trusted Locations): Vertrauenswürdige Speicherorte im Netzwerk zulassen (ohne
sie ignoriert Office jeden Richtlinien-Speicherort auf einem Netzwerkpfad) und Vertrauenswürdiger
Speicherort Nr. 1…N mit Pfad, Unterordnern und der Beschreibung lmn-gpo <Buchstaben>. Dazu
Mischung aus Richtlinien- und Benutzerspeicherorten zulassen unter Common, damit Offices eigene
Speicherorte (der Assistenten-Ordner ACCWIZ von Access) und die des Benutzers gültig bleiben —
laut Microsoft macht „nicht konfiguriert" dasselbe; geschrieben wird es, um es festzunageln. Die
Namen sind gegen Microsofts ADMX geprüft: docs/RESEARCH.md Abschnitt 9. Eine
Benutzer-GPO je Schule, LMN-U-<schule>-21-office-trusted-schule, verlinkt an OU=Devices der
Schule und wirksam über Loopback wie der Rollen-Proxy (15-lockdown-base liefert es;
apply/doctor warnen, wenn kein Loopback-Pack aktiv ist). Eine Lehrkraft der Schule A am
Rechner der Schule B bekommt die Pfade der Schule B; die Buchstaben-Form deckt H: trotzdem ab.
- Dateien auf diesen Laufwerken öffnen mit aktivierten Makros und ohne Rückfrage, auch AutoExec. Das gilt auch für Dateien, die Schüler dort ablegen, und für auf H: gespeicherte Downloads — ein vertrauenswürdiger Speicherort überspringt die Internet-Prüfung ganz.
- Microsoft: Netzwerk-Speicherorte sind möglich, „but it's not recommended", und die Sicherheits-Baseline für Microsoft 365 Apps schaltet Netzwerk-Speicherorte ab. Wer diese Baseline anwendet, bekommt die Einstellung der GPO, die zuletzt verarbeitet wird.
- Standard ist nur Access. Excel, Word und PowerPoint nur, wenn ihr sie eintragt.
- Lehrkräfte: Access-Dateien von Schülern mit gedrückter Umschalttaste öffnen — das überspringt das AutoExec-Makro und das Startformular. Ein Rat, kein Schutz: Eine Datenbank kann die Umschalttaste selbst abschalten (
AllowBypassKey).- Alternative (Microsofts Empfehlung für Freigaben): das Pack auslassen (
office_trusted_enabled: false). Dateien auf den Laufwerken (\\server\…, Lokales Intranet) folgen dann der Trust-Center-Einstellung (der Sicherheitswarnung), statt still zu laufen. Namen, die Windows in die Internetzone legt (server.<domäne>,fs.<domäne>), verlieren die harte Blockade erst in der Zone Lokales Intranet oder Vertrauenswürdige Sites (Zonenliste, wie12-proxy-zone-schulees für den Proxy macht). Kein Pack dafür; eine solche Liste ersetzt die eigenen Zonenlisten der Benutzer (Proxy).
Abschalten: office_trusted_enabled: false + lmn-gpo apply --yes. apply sichert die GPOs
(/var/backups/lmn-gpo) und entfernt sie; alle Werte liegen unter Software\Policies, die Clients
verwerfen sie beim nächsten Richtlinien-Abgleich (gpupdate /force, Anmeldung). Enger:
office_trusted_roles: [teacher] (nur role-teacher) oder eine andere office_trusted_apps-Liste.
Die Rollen einer vorhandenen GPO anders ändern als von all aus einzuengen: apply ergänzt
Sicherheitsfilter nur, deshalb hält es die Schule zurück und nennt die Abhilfe —
lmn-gpo remove --school <schule> --pack 21-office-trusted-schule --yes, dann apply.
Update: Eine Installation mit packs: null (Standard) bekommt das Pack beim nächsten apply,
ohne Änderung an der site.yaml — das ändert das Verhalten von Office auf allen Windows-Clients.
Mit fester packs:-Liste kommt es erst, wenn 21-office-trusted-schule dort steht.
Prüfen am Client als angemeldeter Benutzer: lmn-gpo-check.ps1 listet die Speicherorte; in
Office Datei > Optionen > Trust Center > Einstellungen für das Trust Center > Vertrauenswürdige
Speicherorte, Abschnitt Richtlinien-Speicherorte.
Standardmäßig an, sobald der Host eingetragen ist (Pack 22-edulution-trusted-schule).
Dateien, die eine Lehrkraft von der edulution-Seite der Schule lädt, tragen die Internetzone
(ZoneId=3), und Office blockiert ihre Makros hart. Steht die Site in der Zone Vertrauenswürdige
Sites, gemessen mit Edge 157 unter Windows 11: Edge speichert den Download ganz ohne
Zone.Identifier (keine Herkunftskennzeichnung, nicht ZoneId=2), und Access zeigt die normale
Sicherheitswarnung mit Öffnen statt der harten Blockade. Chrome und Firefox sind nicht gemessen.
Ein auf H: gespeicherter und von dort geöffneter Download braucht dieses Pack nicht: Mit Pack 21
laufen seine Makros ohne jede Warnung (H: speichert keinen Zone.Identifier).
edulution_trusted_enabled: true # Standard
edulution_host: "edulution.schule.de" # leer = Pack übersprungen (nie geraten)
edulution_host_by_school: { schule2: "edu.schule2.de" } # optional, je SchuleGeschrieben wird https://<host> = 2 in der Liste der Site-zu-Zonen-Zuweisungen
(HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey), eine
Computer-GPO je Schule, verlinkt an OU=Devices der Schule — Lehrer-Notebooks eingeschlossen —
mit der clientseitigen Erweiterung Internet Explorer Zonemapping, ohne die Windows die Liste nie
anwendet. Nur https:// wird zugeordnet (reines http zu diesem Host bleibt in der Internetzone,
gemessen); ein Pfad, Port oder Platzhalter im Host wird abgelehnt (zurückgehalten, Exit 1). Ohne
Host wird das Pack mit Hinweis übersprungen. Den Schlüssel teilt es mit 12-proxy-zone-schule (Proxy-Host → Lokales Intranet):
Beide GPOs fügen nur ihren eigenen Wert hinzu und löschen nie den der anderen.
Nebenwirkung: Die ganze Site steht für Windows in der Zone Vertrauenswürdige Sites, nicht nur für Office — jede Prüfung, die an der Internetzone hängt, hält ihre Downloads für vertrauenswürdig (z. B. die geschützte Ansicht von Office für Internet-Dateien, die Sicherheitsabfrage von Windows vor dem Start eines heruntergeladenen Programms), und der IE-Modus von Edge wendet die Einstellungen dieser Zone auf sie an. Nur eine Site eintragen, die ihr selbst betreibt. Und solange die Liste wirkt, nutzt Windows nur die Sites aus der GPO: Eine Site, die ein Benutzer selbst unter Vertrauenswürdige Sites eingetragen hatte, fiel auf die Internetzone zurück (gemessen unter Windows 11; für lokal am Rechner gesetzte Sites sagt Microsoft dasselbe;
docs/RESEARCH.mdAbschnitt 10). Abschalten:edulution_trusted_enabled: false(oder leerer Host) +apply.
Prüfen: lmn-gpo-check.ps1 vergleicht jeden Eintrag der Zonenliste mit der Zone, die Windows
wirklich anwendet (urlmon MapUrlToZone, läuft als normaler Benutzer), und meldet [!!], wenn sie
abweichen; lmn-gpo doctor auf dem DC nennt eine GPO, deren Liste die Erweiterung fehlt. Für eine
heruntergeladene Datei zeigt Get-Content <datei> -Stream Zone.Identifier von einer
vertrauenswürdigen Site nichts und aus der Internetzone ZoneId=3
(docs/RESEARCH.md Abschnitt 10).
GPOs wirken erst, wenn der Client sie holt und der jeweilige Dienst sie liest:
- Grundsätzlich:
gpupdate /force, dann neu starten (Computer-Policies + Loopback + Start-/Shutdown-Skripte greifen beim Boot). - Veyon: zusätzlich den Veyon-Dienst neu starten (Reboot).
- WLAN (PSK/Enterprise): Neustart (Maschinen-Profile werden beim Boot importiert).
- Bootreihenfolge: 2× neu starten, dann
…\Temp\lmn-gpo-bootorder.logprüfen. - Zeit:
gpupdate /force→w32tm /config /update→w32tm /resync(oder Neustart).
lmn-gpo doctor löst jede Security-Filter-Gruppe aus deiner echten site.yaml auf und warnt,
wenn ein Ausschluss ins Leere greift. apply macht dieselbe Prüfung vor der ersten
Änderung und folgt dann einer Regel — es legt nie eine GPO an, die genau die Geräte erreichen
würde, die sie aussparen sollte:
- Gruppe fehlt im Geltungsbereich des Packs (eine Schule ohne
d_nopxe, einteachernb-CN, den es nirgends gibt): das Pack wird zurückgehalten — GPO nicht angelegt, eine vorhandene bleibt unangetastet (lmn-gpo remove --school <schule> --pack <id>entfernt sie bewusst). Eine Zeile pro Pack, Exit 0. Bei einem globalen Pack muss die Gruppe nur in irgendeiner Schule existieren; Schulen ohne sie stehen in einernote:-Zeile (dort wird nichts ausgenommen). teachernb: skip: du sagst, es gibt keine Lehrer-Notebooks. Die@teachernb-Ausschlüsse entfallen, die Packs gelten für alle Geräte, die Vorprüfung nennt sie in einer Zeile. Nur das Literalskiptut das; ein leeresteachernb:zählt alsnopxe. Schon vorhandene GPOs behalten die Deny-ACEs eines früheren Laufs, bis sie neu angelegt werden —applyfügt Filter-ACEs hinzu, es entfernt keine.13-wlan-enterprise(gefiltert auf Lehrer-Notebooks) wird zurückgehalten.filter_apply-Gruppe fehlt (13-wlan-enterpriseohne Lehrer-Notebook-Gruppe): das Pack wird zurückgehalten, wie bisher (sonst gälte es für alle).
Security-filter prerequisites (from site.yaml):
config: /etc/linuxmuster/lmn-gpo/site.yaml
teacher-notebook group (teachernb): 'nopxe'
⚠ 12-proxy-student-schule one exclude-read @teachernb no d_nopxe group in one → pack held back by apply (fail-closed)
Seit 7.3.2 prüfen beide Befehle zusätzlich die Loopback-Voraussetzung der schulbezogenen Benutzer-Packs (siehe Rollen-Proxy) und nennen Pack, Schule und die Packs, die das beheben. Das ist eine Warnung, kein Zurückhalten: Die GPO ist korrekt, nur das Drumherum unvollständig — der Exit-Code ändert sich nicht.
Loopback prerequisite:
⚠ these packs are linked to OU=Devices (address follows the device) and deliver USER settings.
Without loopback processing they reach NO user - the GPO is created, linked and filtered,
and has no effect:
12-proxy-student-schule default-school needs a pack with 'loopback:' on this school's devices
Fix: add one of these packs to 'packs:' in site.yaml (or drop the 'packs:' list to apply all): ...
lmn-gpo env markiert zusätzlich jede Schule, die gar keine noPXE-Gruppe hat. teachernb ist
ein Wert für alle Schulen: nopxe meint die eigene d_nopxe-Gruppe jeder Schule, ein CN wird
unterhalb jeder Schul-OU gesucht — eine gleichnamige Gruppe muss also in jeder Schule
existieren, die die Packs nutzt.
scripts/lmn-gpo-check.ps1 prüft auf dem Windows-Client (rein lesend), ob die Richtlinien
angekommen sind und wirken — deckt jedes Pack ab: gpresult (Computer und User),
Registry-Ist-Werte, Firewall, lokale Gruppen, KMS (Windows und Office), Hotspot,
OneDrive, Ruhezustand, Loopback,
Firefox, Rollen-Proxy, Schüler-Lockdown (HKCU), Veyon, WLAN (+ RADIUS-CA), Zeitsync
(w32tm), das Bootorder-Log, die vertrauenswürdigen Office-Speicherorte (HKCU) und die
Zonenliste (Proxy-Host, edulution) gegen die Zone, die Windows für jeden Eintrag wirklich
anwendet ([!!] bei Abweichung). Erzeugt zusätzlich einen HTML-Report.
Am besten zweimal ausführen:
# 1) als ADMINISTRATOR → Computer-GPOs, Firewall, Gruppen, KMS, Veyon, Zeit, Bootorder
powershell -ExecutionPolicy Bypass -File lmn-gpo-check.ps1 -Refresh -WlanCaSubject "RADIUS CA"
# 2) als angemeldeter SCHÜLER (nicht elevated) → die User-Sperren (Lockdown/Proxy)
powershell -ExecutionPolicy Bypass -File lmn-gpo-check.ps1-Refresh macht vorher gpupdate /force (einzige nicht-lesende Aktion). Ausgabe: [OK]/[!!]
je Prüfung + Summe.
Die Benutzerseite lässt sich nur in einer echten interaktiven Sitzung prüfen. Eine Anmeldung über SSH oder WinRM ist Anmeldetyp 8 in Session 0, und dort verarbeitet Windows keine Benutzerrichtlinie:
gpresult /r /scope user /user DOMÄNE\benutzerantwortet „hat keine RSOP-Daten", undgpupdate /force /target:usermeldet trotzdem „erfolgreich abgeschlossen" und Exit 0, ohne irgendetwas zu tun (im Betriebsprotokoll steht genau ein 5321 mitSessionID=0und kein 5311/5312/4016). Rollen-Proxy, Schüler-Lockdown und H: also prüfen, während der Benutzer an der Konsole oder per RDP angemeldet ist — ein Ergebnis aus einer Remote-Shell ist wertlos.
Eine Installation mit
packs: nullbekommt21-office-trusted-schulebeim nächstenapply, ohne Änderung an dersite.yaml: H:, die Standardlaufwerke und die Laufwerke derdrives.yamlwerden auf jedem Windows-Client vertrauenswürdige Office-Speicherorte für Access (Makros dort laufen ohne Rückfrage). Vor dem Anwenden entscheiden:office_trusted_enabled: falsebehält das alte Verhalten.22-edulution-trusted-schulewirkt erst, wennedulution_hostgesetzt ist.lmn-gpo apply --dry-runzeigt beides.Proxy in der Intranet-Zone, jetzt wirklich — und nur noch die Sites der GPO zählen. Mit eingeschaltetem Rollen-Proxy trägt das nächste
applydie Erweiterung Internet Explorer Zonemapping an den vorhandenen12-proxy-zone-schule-GPOs nach und erhöht ihre Version (lmn-gpo doctornennt jede GPO, der sie noch fehlt). Nach einer Richtlinienaktualisierung liegt der Proxy-Host in der Zone Lokales Intranet — bis 7.3.7 blieb er in der Internetzone. Ab dann zählen nur noch die Site-zu-Zonen-Einträge aus der GPO: Nach dem Update auf 7.3.8 undapplygelten an Schulen mit Rollen-Proxy (Pack 12) oder edulution-Host (Pack 22) keine Sites mehr, die Benutzer selbst einer Zone zugeordnet haben — gemessen unter Windows 11 fiel eine selbst eingetragene vertrauenswürdige Site von Zone 2 auf die Internetzone, obwohl der Eintrag blieb —, und laut Microsoft auch keine, die das Image lokal am Rechner gesetzt hat. Zonen, die Windows selbst vergibt, bleiben (gemessen: H: und\\server\…bleiben Lokales Intranet) (Proxy).
7.3.2 korrigiert den Loopback-Wert. Bis 7.3.1 schrieb
loopback: mergeUserPolicyMode=2— das ist Windows' Replace, also das Gegenteil des Gemeinten. Das Installieren des Pakets ändert an keinem Client etwas: Der Wert steckt in der GPO, die vorhandeneLMN-C-GLOBAL-15-lockdown-base/LMN-C-GLOBAL-12-proxy-baseträgt weiterhin2, bis sie neu geschrieben wird.lmn-gpo doctor # nennt den veralteten Wert: "its GPO still carries UserPolicyMode=2 (Replace)" lmn-gpo apply --yes # schreibt 1 (Merge) und zieht die GPO-Version hochdanach am Client
gpupdate /force+ Neustart; Ereignis 5311 muss dann „Merge" nennen.Was sich dadurch für die Clients ändert. Unter Replace fiel auf jedem verwalteten Rechner jede GPO aus dem OU-Pfad des Benutzers (
OU=Students,OU=Teachers, eine Klassen-OU,OU=Management, GPOs fremder Werkzeuge) stillschweigend weg. Mit Merge wirken sie wieder — das ist das richtige Verhalten und das, was das README immer versprochen hat. Wer sich unwissentlich auf Replace verlassen hat, sieht sich diese GPOs vor dem erneuten Anwenden besser an.
Erst aktualisieren und einmal ohne
drives_enabledlmn-gpo apply --yesausführen — das schreibt den Loopback-Fix aus 7.3.2 — und an einem Client prüfen (gpupdate /force, Neustart, Ereignis 5311 nennt „Merge"). Erst danach die festen Laufwerke einschalten. Der Wechsel von Replace auf Merge ändert schon für sich, welche Laufwerke eine Lehrkraft am Rechner einer anderen Schule sieht (Merge: erst die Standardlaufwerke der eigenen Schule); beides auf einmal lässt die zwei Effekte nicht mehr auseinanderhalten.
Wie du aktualisierst, hängt von der Installationsart ab. In beiden Fällen bleibt
/etc/linuxmuster/lmn-gpo/site.yaml erhalten (inkl. WLAN-Passwörter) — es gehen keine
Einstellungen verloren.
Paket-Installation (lmn-gpo) — empfohlen. Das neuere Release-.deb herunterladen und
über die alte Version installieren:
# das neueste Release-.deb holen (oder von der Releases-Seite herunterladen):
gh release download --repo faircomp/linuxmuster-gpo-template --pattern '*.deb'
apt install ./lmn-gpo_*_all.deb # oder: dpkg -i lmn-gpo_*_all.deb
lmn-gpo doctor # Umgebung prüfen
lmn-gpo apply --dry-run # was ändert sich? (nutzt die gespeicherte site.yaml)
lmn-gpo apply --yesReleases: https://github.com/faircomp/linuxmuster-gpo-template/releases/latest. Beim Upgrade
bleibt deine vorhandene /etc/linuxmuster/lmn-gpo/site.yaml unangetastet (sie wird bei
Upgrade/Remove nie gelöscht), deine Konfiguration wird also automatisch übernommen.
Source-Checkout (./lmn-gpo-cli). Neuen Code ziehen und neu anwenden:
cd /opt/linuxmuster-gpo-template
git pull
./lmn-gpo-cli apply --config /etc/linuxmuster/lmn-gpo/site.yaml --dry-run # was ändert sich?
./lmn-gpo-cli apply --config /etc/linuxmuster/lmn-gpo/site.yaml --yes- Ein
git pullfasst deinesite.yamlnicht an (sie ist gitignored und liegt idealerweise unter/etc/linuxmuster/lmn-gpo/). Vermeidegit clean -fdx/git reset --hardim Repo-Ordner — die löschen ignorierte Dateien und damit eine dort liegendesite.yaml. - Nach dem Re-Apply auf den Clients wie oben
gpupdate+ Neustart.
| Symptom | Ursache / Lösung |
|---|---|
apply sagt „0 GPO(s) applied" oder ein Pack fehlt in der Ausgabe |
Ein Opt-in-Pack ist nicht aktiviert, oder --pack gefiltert. Jedes übersprungene Pack hat eine Zeile ▸ LMN-… skipped: <fehlender site.yaml-Schlüssel> (z. B. firefox_enabled is not true), jedes zurückgehaltene eine Zeile held back: exclusion … matches no group — diese Zeilen lesen. |
| Einstellungen nach Update weg | site.yaml lag im Repo-Ordner und wurde von git clean/reset gelöscht. → nach /etc/linuxmuster/lmn-gpo/ verschieben. |
Zwei site.yaml (Assistent vs. --config) |
setup speichert nach /etc/linuxmuster/lmn-gpo/. Immer dieselbe Datei anwenden. |
| Lehrer können Veyon-Master nicht öffnen | am Client gpupdate /force + Veyon-Dienst neu starten. Das Toolkit setzt bereits die korrekten BaseDN-relativen Gruppen-DNs. |
| Bootorder-Log: „fehlt ein erforderliches Recht" | alte Skript-Version. Aktuelles Pack nutzt einen Scheduled Task — neu ausrollen; Log auf Worker (Scheduled Task…)-Zeilen prüfen. |
| Uhren falsch | Pack 17-ntp-zeit anwenden; am Client w32tm /resync. Der MaxPhaseCorrection-Fix korrigiert auch Batterie-Rechner. Uhren, die um Minuten springen (Proxy fragt nach dem Passwort, Clock skew too great): Pack 17 schaltet ab 7.3.7 Secure Time Seeding ab, neu anwenden und den Client neu starten. |
| GPO angeblich nicht angewandt | am Client als Admin gpresult /r; mit lmn-gpo-check.ps1 gegenprüfen; auf -Refresh + Neustart achten. |
Eine Schul-Benutzer-GPO (LMN-U-<schule>-12-proxy-*) fehlt in gpresult /scope user — auch nicht unter „herausgefiltert" |
Auf dem Rechner fehlt Loopback. Diese Packs hängen an OU=Devices und brauchen 12-proxy-base oder 15-lockdown-base; apply/doctor melden „Loopback prerequisite". Am Client prüfen: reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v UserPolicyMode muss existieren und 0x1 sein. |
gpupdate /target:user über SSH/WinRM meldet Erfolg, es ändert sich nichts |
Benutzerrichtlinie wird nur in einer interaktiven Sitzung verarbeitet (Anmeldetyp 2/10), nie in Session 0. Siehe Prüfen am Client. |
Ein Standardlaufwerk (K:, T:, …) erscheint noch, obwohl drives.yaml es abschaltet |
lmn-gpo doctor, Abschnitt „Drive maps": Ist der Link an OU=SCHOOLS erzwungen, kommt eine andere GPO mit Laufwerkszuordnungen später, ist der Eintrag zurückgehalten (unbekannte Gruppe)? Ist der Benutzer in einer for_groups-Gruppe (neue Mitgliedschaft braucht eine neue Anmeldung)? Am Client zeigt gpresult /h pro Laufwerk die gewinnende GPO. |
Ein Laufwerk aus drives.yaml fehlt |
Gruppenmitgliedschaft (neu anmelden), zurückgehaltener Eintrag (apply/doctor nennen ihn), Linux-Client (nicht unterstützt) oder keine Rechte auf der Freigabe: Dann wird der Buchstabe gar nicht verbunden, und das Anwendungsprotokoll des Clients, Quelle „Group Policy Drive Maps“, zeigt die Warnungen 4117 „Access denied for ':' to ''“ und 4098 mit 0x80070005. lmn-gpo setzt keine Rechte; auf der Freigabe einer anderen Schule hat eine Lehrkraft von Haus aus keine (Feste Laufwerke). |
Die Laufwerke kommen nach lmn-gpo remove --pack 20-drives wieder |
drives_enabled: true steht noch, also legt das nächste apply die GPO wieder an. Abschalten mit drives_enabled: false + lmn-gpo apply --yes. |
Ein Laufwerk aus drives.yaml zeigt auf einen alten Pfad |
Der Benutzer hatte den Buchstaben anders belegt, und der Eintrag nutzt action: update, das nicht umhängt. replace (Standard) verwenden. |
| Zwei Laufwerke zeigen dieselbe Bezeichnung im Explorer | Sie zeigen auf denselben UNC-Pfad; Windows hält eine Bezeichnung pro Pfad. |
samba-tool gpo listall zeigt weniger GPOs als lmn-gpo list |
Die Packs 12-proxy-*-schule verweigern @teachernb (→ d_nopxe) das Lesen, und das Maschinenkonto des DC ist Mitglied dieser Gruppe. Ohne -U administrator läuft listall unter der Maschinenidentität und sieht sie schlicht nicht — die GPO fehlt nicht. Für Bestand und Rückbau lmn-gpo list --mine benutzen (liest das Verzeichnis als root). |
linuxmuster.net 7.x Samba-AD-DC, Python ≥ 3.10, python3-yaml, samba Python-Bindings,
samba-tool (Samba ≥ 4.16 für gpo load), openssl (für Veyon-/WLAN-Zertifikate).
Läuft als root auf dem DC.
Das .deb selbst zu bauen braucht make und dpkg-dev (kein debhelper) — und geht auf jedem
Rechner, nicht nur auf dem DC. Für das Installieren eines fertigen .deb aus einem Release
ist nichts Zusätzliches nötig.
lmn_gpo/ Python-Engine + CLI (gpo, apply, env, catalog, veyon, wlan, scripts_ext, setup, paths, cli)
catalog/ 36 YAML-Policy-Packs
examples/ drives.yaml.example (installiert nach /usr/share/doc/lmn-gpo/examples/)
scripts/ Windows-Start-/Shutdown-Skripte + lmn-gpo-check.ps1 (Client-Diagnose)
tests/ pytest-Unit-Tests (ohne DC; laufen in CI)
lib/ veyon-default-pub.pem (öffentlicher Veyon-Schlüssel)
docs/ RESEARCH.md, VEYON-PLAN.md
wallpapers/ Branding-Bilder je Schule (Bilder nicht eingecheckt)
debian/ Quellpaket (debhelper 13): changelog — die einzige Versionsquelle
(oberster Eintrag = Paketversion, Dist lmn73) — control, rules, install,
dirs, docs, clean, copyright, postinst/prerm/postrm
Makefile make deb -> dpkg-buildpackage -> ../lmn-gpo_<version>_all.deb
.github/workflows/ GitHub Actions (ci.yml prüft, baut und installiert bei jedem Push;
release.yml baut das .deb und hängt es an einen v*-Tag, der dem Changelog entspricht)
LICENSE GPL-3.0
dist/ Build-Ausgabe (das .deb) — gitignored