Skip to content

Kids mode: child installs with a kid password and a parent password - #9750

Open
peterholko wants to merge 36 commits into
omacom:quattrofrom
peterholko:kids/child-profile
Open

peterholko wants to merge 36 commits into
omacom:quattrofrom
peterholko:kids/child-profile

Conversation

@peterholko

@peterholko peterholko commented Sep 2, 2026 •

Copy link
Copy Markdown

Kids mode: a child install with a kid password and a parent password

Pairs with the installer half in omacom/omarchy-iso (branch kids/child-profile): the ISO asks "Who is this computer for? Me / Child / Another owner" first, and a Child answer takes both passwords and installs the child profile.

What a child install gets

  • Two passwords. The kid password is the account password: login, lock screen, and the disk at boot. The parent password is root's password, and it is what every privileged path asks for. Both unlock LUKS, and both open the lock screen.
  • sudo and system prompts ask for the parent password. Defaults rootpw plus a parent-worded passprompt in sudoers.d, and a polkit admin rule naming unix-user:root, so the Quickshell polkit agent authenticates root ("Parent password" in the dialog).
  • The kid account is not an administrator. It is kept out of wheel (least privilege, per the project direction), with an explicit per-account sudoers grant that still asks for the parent password, plus the NOPASSWD browser-accent re-grant so theme switching stays one click. omarchy-menu-timezone falls back to polkit where the wheel grant does not reach.
  • Wi-Fi asks the parent by default, and the parent can hand it to the kid. Joining or changing a network is a NetworkManager settings change that Arch waves through for wheel only, so the kid account asks for the parent password. omarchy-parent apply writes /etc/omarchy/parent.conf (the parent's settings file, wifi=parent by default) and a polkit rule for the kid account from it; sudo omarchy-parent wifi kid lets the kid join the school's network alone, wifi parent puts the prompt back. Known networks, scanning, and the Wi-Fi switch never ask; global DNS stays the parent's.
  • The parent password opens the lock screen too. On a child install the lock stack tries the kid's password first, then hands the typed password to a small helper, omarchy-parent-unlock, that asks sudo whether it is root's (which rootpw already makes it check), with the flag that keeps the credential cache out of it. So a parent can get into a locked session without the kid's password, the unlock leaves no passwordless sudo behind, and root's faillock limit applies to guesses. A normal unlock by the kid never touches sudo. The fingerprint stack and SDDM's login are unchanged.
  • Text consoles are closed (getty@tty2..6 masked) so the lock screen is the only way back into a locked session; sudo omarchy-parent tty on reopens them.
  • sudo omarchy-parent, the parent's command: password (also under Update > Password > Parent in the menu), apply --user NAME [--remove] (the plumbing the install leaf and first-boot provisioning call), tty off|on, and dispatch of feature commands: anything else runs omarchy-parent-<feature>, so later features (screen time, an app whitelist) plug in without editing this command. install/helpers/parent.sh shares the stage-visudo-install sudoers writer with them.
  • Profile plumbing. omarchy-apply-system --profile child records /etc/omarchy/profile; omarchy-profile-child is the predicate the rest of the tree keys on; install/omarchy-child.packages is the (currently empty) child package list, wired for the ISO and omarchy-reinstall-pkgs.
  • Setup form and first boot. install/provisioning/setup-form.sh gains the first question and both password prompts (parent must differ from kid); omarchy-provision-owner keeps root's password for the parent, adds the parent LUKS slot, and applies the posture on a child install after a factory reset. A child install asks for neither the full name nor the email: they only feed git identity and the compose shortcuts, and it is the parent at the keyboard, so an answer would have been theirs. The hostname prompt stays, with its omarchy default, since it is what the parent sees on the router and two kids' machines both named omarchy would collide on the home network.
  • Smaller adjustments. faillock rate-limits root too; fingerprint setup words itself as unlock-only on a child install; FIDO2 setup is hidden there (it only ever covered sudo and polkit); manuals 02, 37, 48 and docs/file-layout.md document all of it.

Default installs are unchanged: every new path is gated on the child profile.

What the kid and the parent see

The wording lives in the shared setup form, so the ISO and the first-boot flow show the same screens. On a child install the user step asks:

Username>         Alphanumeric without spaces (like dhh)
Kid password>     Used for login, unlocking, and disk encryption when enabled
Confirm>          Must match the password you just typed

Let's set the parent password...
sudo, updates, installs, and system prompts ask for this one; keep it from the kid.
Parent password>  Asked by sudo, updates, and installs (keep it from the kid)
Confirm>          Must match the parent password you just typed

The parent prompt rejects a blank, a mismatch, and a password equal to the kid's, and the confirmation table shows both as a fixed eight-character mask. Full name and email are not asked on a child install; the form goes on to hostname and timezone. The omarchy-iso PR carries the full screen-by-screen flow, starting with "Who is this computer for? Me / Child / Another owner".

After login, the kid sees no kids-mode banner; the one profile-aware onboarding text is the fingerprint invitation, which says "Unlock with your fingerprint." instead of promising sudo. sudo prompts read [sudo] parent password: and the polkit dialog's field reads "Parent password".

What the kid account cannot do

  • Refused or hidden: administrator standing (out of wheel and docker), the text consoles Ctrl+Alt+F2 through F6, Setup > Security > Fido2, root login and su without the parent password.
  • Asks for the parent password through sudo: every Install and Remove entry; Update > Omarchy, Firmware, Time, Channel, Config > Plymouth, Hardware > Trackpad, Password > Drive Encryption, Password > Parent; Setup > Direct Boot, Reset Computer, Security > Fingerprint, SSHD, Passwordless Sudo, Sudoless Docker; System > Hibernate setup; the hybrid GPU toggle; anything typed with sudo or pacman.
  • Asks for the parent password through polkit: joining or changing a Wi-Fi network (unless omarchy-parent wifi kid), the DNS toggle, Update > Timezone, the Docker TUI, the Windows VM, and every other administrator-only polkit action.
  • Still hers: login and unlock, fingerprint unlock, her own login password, known Wi-Fi networks, the Wi-Fi switch and scanning, Bluetooth, themes including the browser accent, screenshots, printing, volume and brightness, power off, reboot, suspend, USB sticks, the Hyprland, Hyprsunset, Shell, and Tmux config resets, and every installed app.
  • Not covered: web content (the web filter is its own PR), software that needs no root, and a live USB with the kid's disk password, which the manual answers with a BIOS password. Passwordless Sudo and Sudoless Docker key on the invoking user, so a parent running them from the kid's session would grant the kid's account; both ask for the parent password first.

Testing

  • Shell suites: parent, parent-unlock, profile, provision-owner, setup-form, polkit, timezone, fingerprint-invitation, security-fido2, sudoless-docker-posture under test/shell.d/ pass on the branch. They were run on macOS with bash 3.2, so the fake-root halves of parent-test.sh and parent-unlock-test.sh skip there; a Linux run of ./test/all and test/cli remains to be done before merge.
  • provision-owner checks that the child form skips the full name and email prompts and drops their rows from the summary; the omarchy-iso harness's child run types neither.
  • test/acceptance.d/parent-test.sh covers the polkit dialog wording and the sudo prompt on a child install; it runs in the acceptance VM.
  • Installed three times on a ThinkPad from ISOs built off this branch with the omarchy-iso branch, the last one on 2026-09-01 with the follow-up feature branches merged in for the trial:
    • The installer opens with "Who is this computer for?", the Child path asks for the kid and parent passwords, and the summary masks both.
    • Both passwords open the disk at boot; the kid password logs in.
    • sudo prompts with [sudo] parent password: and takes only the parent password; the polkit dialog says "Parent password".
    • The lock screen opens with either password. After a parent unlock, sudo -n true still asks, so the unlock cached no credential.
    • Joining a new Wi-Fi network asks for the parent password; after sudo omarchy-parent wifi kid a fresh join goes through without a prompt, and wifi parent puts the prompt back.
    • Ctrl+Alt+F2 through F6 give no login; sudo omarchy-parent tty on brings them back.
    • /etc/omarchy/parent.conf carries the documented wifi= key, and omarchy-parent --help lists the core commands.
  • The first trial is what surfaced the Wi-Fi prompt, and the second the lock screen, both of which this branch now handles.

Roadmap

  • A web filter by domain (omarchy-parent dns),
  • An app filter list (omarchy-parent apps), branch kids/apps, built on this dispatcher.

Plan with the direction this follows: plans/kids-passwords.md.

🤖 Generated with Claude Code

@peterholko

peterholko commented Sep 2, 2026 •

Copy link
Copy Markdown
Author

I asked Fable to built this PR from dhh's comment here:

  1. Kids mode is triggered during initial install. Right now we let you setup for another owner when you go it Ctrl + C on the keyboard select screen.
    That changes such that the first Q is a full Who is this computer for? 1) Me, 2) Child,3) Another owner
    If child, then we trigger a different install profile. That's what'll include the different apps and different themes.
    We ask for both a kid password and an adult password. Adult password becomes sudo. Kid is normal login. Both unlock LUKS.
    Once in, we have a sudo omarchy-parent bin that controls things.

The installer's first question, "Who is this computer for? Me / Child /
Another owner", selects a child profile that sets a machine up for a kid
with two passwords. The kid password is the account password: login, the
lock screen, and the disk at boot. The parent password is root's, and it
is what every privileged path asks for: sudo through Defaults rootpw, and
system prompts through a polkit admin rule naming root. Both unlock LUKS.

The kid account is kept out of wheel, with an explicit per-account sudoers
grant that still asks for the parent password and the browser-accent write
re-granted so themes stay one click; the text consoles are closed; the
parent password opens the lock screen too, checked through sudo under
rootpw by omarchy-parent-unlock after the kid's own has been refused; joining
or changing a Wi-Fi network asks the parent unless `omarchy-parent wifi
kid` hands it to the kid, a choice kept in /etc/omarchy/parent.conf.
`sudo omarchy-parent` carries password, apply, tty, and wifi, and
dispatches any other subcommand to omarchy-parent-<feature>, with
install/helpers/parent.sh sharing the sudoers installer and the settings
helpers, so later features plug in without editing it.

omarchy-apply-system --profile records /etc/omarchy/profile, which
omarchy-profile-child reads; install/omarchy-child.packages is the child
package list the ISO vendors. The shared setup form asks the first
question and both passwords, first-boot provisioning keeps root for the
parent and adds its LUKS slot, faillock rate-limits root, fingerprint
setup words itself as unlock-only, FIDO2 setup is hidden, and the polkit
dialog says "Parent password". Default installs are unchanged: every new
path is gated on the child profile. Manuals, docs, shell suites, and an
acceptance test cover it; the plan is plans/kids-passwords.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@peterholko
peterholko marked this pull request as ready for review September 2, 2026 14:33
@kenhara

kenhara commented Sep 2, 2026 •

Copy link
Copy Markdown

Updating to include Debian and QEMU versions, also deleted earlier redundant comment.

Full pack (notes + every screenshot): https://gist.github.com/kenhara/f11a6667ff9f7cce290b502dc3cc3b30

Kids-mod smoke on this draft, paired with omacom/omarchy-iso#146 (kids/child-profile 73fdccf). Omarchy tree f17ab6c. Local ISO, Child install, unencrypted, QEMU. Used the omarchy-iso-test --child defaults (kid omarchy, parent omarchy-parent). Specifically, I ran this test in Grok bot which is running Debian GNU/Linux 13.6 (trixie) and QEMU 10.0.11 (Debian 1:10.0.11+ds-0+deb13u1).

Product bar: parent password must always reach a desktop in the same kid session, not a second user.

What I saw in the VM

  • First question Who is this computer for? Me / Child / Another owner. Child asks for kid + parent passwords. Review table lists both.
  • Kid copy: used for login, unlocking, and disk encryption when enabled.
  • Parent copy: sudo, updates, installs, and system prompts; keep it from the kid.
  • Stale header: Let's set the parent password... stayed on Full name, Email, Hostname, Timezone, and review. Cleared at disk selection. install/provisioning/setup-form.sh gum headers.
  • Unencrypted first boot still logged ERROR: Failed to open encryption mapping … is not a LUKS volume plus failed resume from /dev/vda2.
  • After install, id is uid=1000(omarchy) groups=1000(omarchy) only. Not in wheel.
  • sudo -k id prompts [sudo] parent password:. Raw field not finished from the harness, so sudo auth success/fail not proven live. Prompt text is right.
  • SDDM: kid password got a desktop. Parent password was rejected (field cleared, stayed on login). That is the important live finding.
  • Lock reached an Enter Password dialog. Typing the parent password there black-screened the guest. Inconclusive on this VM. Please verify on KVM / hardware.
  • Update System did not raise a polkit dialog. It opened the System… menu (Screensaver, Lock, Suspend, Hibernate, Logout, Reboot, Shutdown). Polkit copy not proven live.

Who is this computer for, Child selected

Parent password screen

SDDM after parent password rejected

sudo parent password prompt

id not in wheel

unencrypted first boot LUKS error

Code (f17ab6c), nothing withheld

Lock-screen parent unlock — PRESENT in tree, stub-tested only. omarchy-apply-lock writes kid pam_unix then pam_exec → omarchy-parent-unlock (sudo -k -S -u root -- true). test/shell.d/parent-unlock-test.sh checks text, not a live PAM run.

pam_exec has no seteuid. Lock is accidentally safe because omarchy-shell is the kid. SDDM authenticates as root. Copying this stack onto SDDM without seteuid would make any password succeed after pam_unix fails.

SDDM parent unlock — MISSING. install/login/sddm.sh only strips gnome-keyring. plans/kids-passwords.md says SDDM is unchanged. Autologin is not a substitute (encrypted Autologin fires at SDDM start, not after logout; unencrypted removes it). ISO establish_session types the kid password only. test/acceptance.d/parent-test.sh never opens SDDM or the lock.

sudo / polkit / wheel / omarchy-parent / masked ttys / LUKS second slot — PRESENT in tree. Wheel absence proven live. sudo prompt text proven live. Polkit dialog not proven live. Ttys: getty@tty2..6 masked; unmask is sudo omarchy-parent tty on, which already needs a session.

Copy overclaims. ISO configurator / getting-started: parent “opens the disk too so a parent can always get in.” True only for encrypted boot, not logout / SDDM / unencrypted.

Gates

Gate Result
Lock Code yes, same kid session. Live inconclusive. faillock on the kid is required before parent-unlock, so 10 failed kid tries also lock the parent out for 120s.
SDDM No. Kid only. Proven live.
sudo Code yes (rootpw + [sudo] parent password:). Live: prompt only.
polkit Code yes (unix-user:root, dialog “Parent password”). Live not proven.
LUKS Yes if encrypted. No recovery if unencrypted.
tty No parent login path. 2–6 masked.

Stuck-parent: logout → SDDM kid-only + ttys dead. Encrypted has reboot + LUKS parent + autologin. Unencrypted has no reboot escape. The plan treated SDDM as out of scope. The product intent does not.

Please pick up

  1. Wire parent unlock into SDDM as the same kid user. Reuse omarchy-parent-unlock. Do not add a parent account. Natural place: omarchy-apply-lock also ships the child auth stack into /etc/pam.d/sddm (or a shared include). Keep session/account stacks intact.

  2. Add seteuid on pam_exec for lock and SDDM. Assert it in parent-unlock-test.sh.

  3. Tests that would have caught this: apply-lock writes parent helper into the SDDM stack (default profile does not); seteuid present. Acceptance iso-test --child unencrypted: parent at SDDM lands in the kid session; kid still works. Encrypted: logout then parent at SDDM; also parent at LUKS. establish_session currently hard-codes GUEST_PASSWORD; add a parent path.

  4. Do not “fix” SDDM with Relogin=true or a second user. Relogin skips the password after logout. A parent account violates one kid session.

  5. Copy: stop saying a parent can always get in until SDDM works. Fix the stale parent-password gum header on later setup-form screens. Unencrypted first boot should not try a LUKS mapping.

  6. After SDDM: either run parent-unlock before dying on kid faillock, or document the 120s wait. even_deny_root is already correct for sudo/polkit.

  7. omarchy-parent password still does not update the LUKS parent slot. Fine if documented. Not the merge blocker.

  8. Passwordless sudo / sudoless Docker menus are not child-gated. Enabling them requires the parent password, then the kid is passwordless root. Parent footgun, not a kid bypass.

  9. Passing test/acceptance.d/parent-test.sh is not “parent can always reach a desktop.”

Happy to re-test a follow-up ISO.

peterholko and others added 3 commits September 2, 2026 11:17
After a logout, or on an unencrypted install past its first boot, the
login screen is the only way into the kid's session, and autologin does
not cover it; the lock screen already took the parent password but SDDM
did not. omarchy-apply-lock now writes the child auth block into
/etc/pam.d/sddm on child installs, built from a kept copy of the
packaged file with only the `auth include system-login` line expanded,
and restores that copy outside the profile.

SDDM's greeter runs PAM as root, and sudo asks root nothing, so a helper
run that way would have accepted any password. omarchy-parent-unlock
now drops to the account PAM names before asking sudo when it runs as
root, refuses any other identity, and the test drives it as the kid, as
root, and as a stranger. The manual states the one limit: ten wrong
tries lock the kid's account for two minutes, parent password included.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The first-boot form printed "Let's set the parent password..." as a
screen header and then asked for the name, email, hostname, and timezone
under it. A fresh header follows the parent password now.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Both grant the invoking account root without a password, which on a
child install is the kid's account the moment a parent types the parent
password to enable them. They stay reachable from a terminal for a
parent who means it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@elgevan

elgevan commented Sep 2, 2026 •

Copy link
Copy Markdown

Testing feedback

Tested in a fresh QEMU/KVM install using:

A few thoughts:

  • Does a child install need the same setup flow as a regular install? Full name and email are only used for Git, and the hostname could use a default.

  • WhatsApp was still available in the child environment. The default apps and shortcuts inherited by Child mode should probably be reviewed.

The helper's own drop to the account is what makes the login screen
safe; seteuid on the pam_exec lines states the intent alongside it, and
the shell suite asserts it. The in-guest acceptance test now reads both
PAM stacks on a child install: the helper after pam_unix in each, the
kept copy of the packaged SDDM file, and the nologin check kept.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@kenhara

kenhara commented Sep 2, 2026

Copy link
Copy Markdown

@peterholko @elgevan my understanding/two cents:

So, I think the parent/sudo account should be set first. When that's done, the hostname will be set and the parent will have the option to enter full name and email for their account.

Then, a child account can be set up and both full name and email can be optional since they're for git. Hostname also skipped.

But I think it makes sense to do this in the same session. The kid screen show up after the parent account has been created. This isn't how it works right now but I think it makes sense. IDK. this is weird.

@kenhara

kenhara commented Sep 2, 2026 •

Copy link
Copy Markdown

I think it would be odd to let kid be set up first, as non-sudo, and set the hostname. I have to sit down and think through it but that's not making sense to me at the moment. Unless you kick back to parent/sudo to complete the install during the bootup? idk.

Both answers only feed git identity and the compose shortcuts, and on a
child install it is a parent at the keyboard, so whatever they typed
would have landed in the kid's git config as the parent's identity. The
child form now goes from the parent password to the hostname, and the
summary drops the two rows; the git and compose leaves already tolerate
empty values. The hostname prompt stays, with its default.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@peterholko

Copy link
Copy Markdown
Author

I removed the Full Name and Email requirement, it can easily be done manually after installation.

@hansent

hansent commented Sep 3, 2026

Copy link
Copy Markdown

Setup omachi for my 10 year old today. Definitely would have loved to setup myself as su and then him as a user. Ended up resetting and setting it up just for him since this wasn't an option.

Mainly just want to say +1 on the flow you have here; it's pretty much exactly what I wanted but didn't have today.

Showed him a couple of keyboard commands and he picked it up way faster than I expected...already 10x happier about than he was with windows; especially given how easy steam and Minecraft were to install!

Maybe optionally allow adding multiple child accounts and have some account switcher for sibling purposes...although I can also see this turning into a couple of new computer setups for the other kids already 🤩

A Child profile still inherited the adult launcher set, keybinds, and
Install/Remove menu. Gate those on omarchy-profile-child, strip the
skel-planted desktop files at refresh, and add gcompris-qt to the child
package list. System (power) and Update passwords stay reachable.
Pass OMARCHY_PATH explicitly through sudo env so parent commands continue using the selected installation after env_reset. Retain the existing default used by root-side setup and direct sudo entry points.

Add a regression covering a custom path with spaces, retained gum styling, unchanged arguments and the elevated helper lookup. The test fails before the fix and passes afterward; the existing parent suite also passes its locally available checks.
Use one persistent sibling flock for conf_init, conf_set and conf_document, covering the initial file/key checks through publication. This prevents a concurrent default initializer from replacing an explicit wifi=kid choice with wifi=parent.

Stage complete contents in the settings directory, set public permissions before the rename, and clean up on failure. Write failures propagate even when callers suppress errexit; the subshell releases the lock without changing caller traps or umask.

Add regressions for the reproduced Wi-Fi race, idempotent initialization, preserved comments and permissions, atomic reader snapshots, and lock/content/publication failures. Keep the implementation in the existing Bash helper.
@peterholko

Copy link
Copy Markdown
Author

Patch: preserve the active Omarchy installation when parent commands elevate — ea3f2255.

When OMARCHY_PATH points to a checkout outside /usr/share/omarchy, a bare command such as omarchy-parent wifi kid --user kid elevates itself through sudo. With env_reset, the elevated process previously lost that path and fell back to /usr/share/omarchy, potentially loading another installation's helpers or failing to find them.

The command now passes OMARCHY_PATH explicitly through sudo env, alongside the existing gum styling. Its existing default for direct sudo/root setup entry points remains intact.

Added test/shell.d/parent-elevation-test.sh. It runs the command through a sudo stub that clears the environment, using a custom installation path containing spaces. It verifies the elevated helper lookup, gum styling, and unchanged arguments. The regression fails on the previous PR code and passes with this patch. The test simulates the uid transition and touches only temporary fixtures; it does not change accounts or authenticate through the host's sudo/PAM.

@peterholko

Copy link
Copy Markdown
Author

Patch: serialize parent-settings writes and publish complete files atomically — 76bb1f2e.

Default initialization and an explicit Wi-Fi change could race: conf_document wifi parent checked that the key was absent, conf_set wifi kid wrote the parent's choice, and the initializer then appended wifi=parent. Since reads use the last matching key, this silently replaced the explicit choice with the default. This reproduces using only the Wi-Fi control already included in this PR.

conf_init, conf_set, and conf_document now share one Bash writer. A persistent sibling flock covers the existence/key checks through publication. Complete contents are staged in the same directory, set to mode 0644, and renamed into place. Failed operations return failure and clean up their staging files; the subshell releases the lock while preserving the caller's traps and umask.

Added test/shell.d/parent-config-test.sh, covering the controlled concurrent Wi-Fi race, idempotent initialization, preserved comments/permissions, complete file generations for readers, and injected lock/content-generation/publication failures. The race test fails on the previous PR helper and passes with this patch.

Validation was local on macOS with Bash 5. The settings tests used real kernel flock(2) locks through a small local adapter for the descriptor-only util-linux flock invocation; that adapter is not part of the patch. The parent, parent-unlock, profile, and provision-owner checks also passed locally; the existing Linux user-namespace apply/password probes were skipped. No ISO or GitHub Actions runs were started.

Resolves the conflicts with upstream: omarchy-reinstall-pkgs keeps the child list on top of the base list through omarchy-update-pacman; the Docker shortcut stays under the child-profile guard with upstream's Lazydocker check inside it; the security menu keeps the child guards on Passwordless Sudo and Sudoless Docker beside upstream's SSH Agent entry; the polkit agent keeps the parent-password placeholder with upstream's Commons.Color namespace; and the lock-helper test's trusted root bin carries both sides' helpers.

Docker leaves the child hidden-launcher list: upstream now ships its launcher as an on-demand template under default/applications rather than in the default set.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · The earlier defects are fixed, but the installation-path requirement must be satisfied before merging.RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR changes account and administrator access across child installs.

The earlier defects are fixed, but the installation-path requirement must be satisfied before merging.

Findings

  1. P2 Command chooses its own path ▶

Summary

Adds child installs with separate kid and parent passwords, parent-gated administration, profile-aware setup, and a smaller set of visible apps and actions.

  • Child installs ask for separate kid and parent passwords.
  • Parent passwords now gate administrator actions on child installs.
  • The parent password can unlock a child's session.
  • Child installs show a smaller set of app shortcuts and setup options.

Reviews (6) · Last reviewed commit: "Keep Update > Channel's entries out of a..." · Reviewed by Greptile

Comment thread test/shell.d/parent-unlock-test.sh Resolved
Comment thread bin/omarchy-parent Resolved
Comment thread bin/omarchy-reinstall-configs Resolved
Upstream moved the LUKS re-key into install/provisioning/luks-rekey.sh, a journaled, resumable helper that keeps one slot. A child install keeps two, so the helper takes an optional extra_passwords list: their slots are added with the staged key beside the owner's, journaled as extra_slots, kept by the retire step, checked by the verify step, and the first is recorded as the second kept slot (luks-slots recovery=). omarchy-provision-owner passes the parent password through it; the journal test gains the child case and the provisioning test pins the new wiring.

Also: omarchy-reinstall-pkgs appends the child list to the platform defaults from omarchy-pkg-defaults; the security menu keeps the child guard on Fido2 beside upstream's USB authorization entries; the manual and file-layout docs carry both sides' additions.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comment thread bin/omarchy-provision-owner Resolved
Comment thread bin/omarchy-apply-lock Resolved
peterholko and others added 4 commits October 9, 2026 23:36
omarchy-reinstall-configs re-ran omarchy-refresh-applications so a child install drops its hidden launchers after skel is replayed, but that refresh also runs install/user/mise.sh, which removes and rewrites every wrapper in ~/.local/bin on every install. Skel never carried those wrappers, so a reset used to leave a customized gh or hey alone. omarchy-refresh-applications gains --launchers-only, which installs the launchers and drops the hidden ones without touching the wrappers, and the reset calls it that way.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
omarchy-apply-lock names /etc/pam.d by literal path for the lock stack, and as root it replaces the caller's PATH and runs its writes directly rather than through sudo. The test stubbed sudo and set OMARCHY_PAM_DIR, which covered an unprivileged run only: as root the first call rewrote the live lock stack before the scratch assertion failed, and a host without fprintd lost its fingerprint PAM file and resume hook. The test now runs a copy of the helper with every privileged destination redirected into scratch, the PATH guard disabled and the fingerprint probe pointed at nothing, as apply-lock-test.sh does, and checks that copy names no live path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
omarchy-parent wifi wrote the choice to parent.conf under the writers' lock and published the polkit rule after releasing it, and apply read the setting and published the rule without the lock at all. Two overlapping commands could record one choice and publish the other. The shared helper gains conf_locked, which holds the writers' lock around a whole command while the writers inside it see the held lock and do not take it again; wifi and apply run their setting and rule steps through it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comment thread bin/omarchy-parent Resolved
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
omarchybot and others added 2 commits October 14, 2026 01:43
Brings the branch onto current quattro. Two conflicts, both where both sides had edited the same lines: setup-form.sh's list of the variables its prompts write (both added names), and the menu's security entries, where quattro removed the USB authorization items and this branch had added the child-profile guard to Fido2 beside them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
logind starts a free VT as autovt@ttyN.service on a switch. It's an alias of getty@.service that a getty@ttyN mask does not cover, so on a child install Ctrl+Alt+F2 still gave a root login prompt. Masking both names closes it, as checked on a worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot assigned omarchybot and unassigned omarchybot Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed by Claude Opus 5.5, with Codex Medium as a second opinion on 6f05157. Codex found the four defects below on its own reading; independence between the two reviews isn't guaranteed.

Brought up to quattro. I merged the latest quattro into this branch (no force-push). There were two conflicts: the field list comment in install/provisioning/setup-form.sh now lists both sides' fields, and in default/omarchy/omarchy-menu.jsonc I kept quattro's removal of the USB authorization entries and put "when":"! omarchy-profile-child" on Fido2. On a fresh worker built from the ISO, the full shell suite gives 7 failures on this branch and 10 on plain quattro at the same commit. All 7 also fail on quattro, so this PR adds no new failures.

Fixed here: the text consoles weren't actually closed. mask_consoles masked getty@tty2–tty6, but when you switch to a free VT, logind starts it as autovt@ttyN.service. That's an alias of getty@.service, and the getty@ttyN mask doesn't cover it. On a worker with the mask in place, Ctrl+Alt+F2 still brought up autovt@tty2.service with agetty running, which is a root login prompt. console_units now masks and unmasks both names. Repeating the same check with both masked left no agetty running. The assertions in test/shell.d/parent-test.sh now include the autovt@ units, so a regression fails the test. Codex Medium reviewed this commit (aac4705) separately and found no defects. It checked that the mask holds under stock logind settings, works in the install chroot, and that unmasking restores the stock state.

Still needs the author:

  1. Root lockout now applies to every install. etc/security/faillock.conf turns on root lockout globally. On an ordinary install, ten failed root authentications can now temporarily block su and root login. It should apply only on a child install, or be proposed as its own policy change.
  2. wifi=kid grants more than joining Wi-Fi. The polkit rule in bin/omarchy-parent grants org.freedesktop.NetworkManager.settings.modify.system with no restriction on which connection or what changes. Once it's on, the kid can modify every system connection, e.g. nmcli connection modify "Wired connection 1" connection.autoconnect no, or change routes and DNS.
  3. An interrupted provisioning retry can leave root's password and the disk password different. luks-rekey.sh validates only the kid password before provisioning starts. Suppose setup crashes after the staged slot is retired, and the parent retries with the original kid password and a new parent password. omarchy-provision-owner changes root's password, and then the LUKS step refuses to add it because the staged key is gone. Validate both passwords before changing either account, or enroll using the retained kid key.
  4. Some security tests pass without running. test/acceptance.d/parent-test.sh reports a pass when passwords are missing, including on a child install. The namespace test in test/shell.d/parent-test.sh reports a skip as a pass. These should report a skip, and a designated child acceptance run should require credentials. The faillock check only reads config text; real parent unlock and root lockout aren't exercised.

Kids need to be able to vibe code. That's a requirement from the maintainer. As written, a child profile hides the Install and Remove menus ("when":"! omarchy-profile-child"), and those are where AI tools, dev environments and editors come from. Please drop the guard on both. Anything that installs system packages already goes through sudo, so it already asks for the parent password. mise toolchains and coding agents install into the kid's home, which is what vibe coding needs.

Accepted design choice. Codex rated this one P1: the parent unlock sends the parent's password through the kid's Quickshell session, and a determined kid could swap in a modified shell to capture it. The maintainer has said it's fine for the parent to type their password in the kid's session, so this isn't a blocker.

Could be simpler. None of these block the PR:

  • Drop the Wi-Fi delegation for now. It's where defect 2 lives. Without it, Wi-Fi changes just ask the parent.
  • Drop omarchy-parent tty on|off. The consoles are closed on a child install either way, and a toggle adds code and tests for something a parent is unlikely to need.
  • Consider dropping the parent password at the SDDM login screen. The lock screen already lets the parent in. The login-screen version rewrites SDDM's PAM file and keeps a backup of the packaged one, and it also lets the parent password open any account there.
  • Move or trim plans/kids-passwords.md. 238 lines of planning notes will drift from the code once this is merged.
  • The dispatcher and shared settings helpers are Screen time for the child profile, with two modes #11196's scaffolding. That's fine if Screen time for the child profile, with two modes #11196 lands soon after; otherwise move them there.

Next: waiting on the author for 1–4 and the Install/Remove change, then the maintainer decides on merging.

peterholko and others added 6 commits October 27, 2026 21:00
Upstream now reads every user-facing string from the i18n catalogs, asks for the language before anything else, and no longer asks for a name or an email. The Kids strings move into the English catalogs: the first question and both passwords in setupForm.*, the child fingerprint invitation in firstRun.*, the parent-password placeholder of the polkit agent in polkit.*, and the Parent menu entry in the menu catalog. The child install's name and email skipping goes, since nobody is asked any more. omarchy-refresh-applications lost its mise step upstream, so the --launchers-only mode added for the config reset goes with it; the reset calls the plain refresh, which never touches ~/.local/bin. The deleted timezone test's Kids half, the fall-through to timedated's polkit prompt where the sudo grant does not reach, lives on in timezone-menu-grant-test.sh.

Also: the child package list rides on omarchy-pkg-defaults in omarchy-reinstall-pkgs; the security and update menu guards sit beside upstream's new Git and Kernel rows; and the lock-helper, polkit and binding tests carry both sides' checks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The maintainer's requirement for kids mode is that a kid can vibe code,
and the Install and Remove menus are where editors, toolchains and coding
agents come from. Both were hidden behind "! omarchy-profile-child".

Drop the guard. Anything there that adds or removes system packages goes
through sudo, which asks for the parent password on a child install; mise
toolchains and agents install into the kid's home. The parent test pins
the entries as present, and the manual says which entries still ask.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
First-boot provisioning checked only the kid password against the re-key
journal before changing the accounts. On a child install, setup killed
after the retire step and retried with the same kid password but another
parent password would set root's password to the new one, then fail the
LUKS step because the staged key that enrolled new slots was gone, leaving
root's password and the disk's parent slot apart.

luks_rekey_accepts_password now requires every extra password to open a
slot once the staged key is retired, and provision-owner hands it the same
extra passwords the re-key gets, through rekey_extra_passwords. A changed
parent password is refused at the form, before either account changes,
with a notice that names both passwords. While the staged key still opens
the disk a retry may still choose new passwords, as before.

The journal test kills a child setup after the last slot is retired and
checks that another parent password is refused and the original finishes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
test/acceptance.d/parent-test.sh passed when it had not run: on a non-child
install, and on a child install without the passwords. The namespaced
probes in test/shell.d/parent-test.sh passed the same way without an
unprivileged user namespace.

Both now report a skip. The acceptance test also reads the profile the
harness says it installed (OMARCHY_ACCEPTANCE_PROFILE, from omarchy-iso-test
--child): a child run fails when it lands on another install or arrives
without its passwords, and a default run fails on a child install. The
test also runs the real omarchy-parent-unlock helper as the kid, refusing
the kid password and accepting the parent's, so the lock and login stacks'
helper is exercised against the live accounts and not only grepped for.

The pin test covers the skip lines, the designated failures, and the helper
run, with the helper redirected to a stub where its invocations are.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The shipped etc/security/faillock.conf carried even_deny_root and
root_unlock_time, so every install started locking root out after ten
failed authentications, including su and root logins on machines that
never asked for a parent password. The file is an etc-override that
reaches every install, and the omarchy-settings scriptlet rewrites it on
every upgrade, so a child-only edit could not live there either.

The file is upstream's again. omarchy-parent apply now adds
"even_deny_root root_unlock_time=120" as module arguments to the preauth
and authfail pam_faillock lines of /etc/pam.d/system-auth, beside the
deny and unlock_time the install's lockout step puts there, and --remove
strips them. Module arguments win over the config file, and the install
leaf runs after the lockout step, so the options survive it. sudo and
polkit authenticate root through system-auth on a child install, which is
where the parent password is checked. A stack without those lines gets a
warning rather than a failed install.

The parent test runs the two functions against a copy of the stock stack:
both lines gain the options once, a rerun changes nothing, remove restores
the stock lines, and the shipped faillock.conf names root nowhere. The
namespaced apply probes check the same against their fixture, and the
acceptance test reads the live system-auth and sudo stacks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
"omarchy-parent wifi kid" wrote a polkit rule returning YES for the kid
account on org.freedesktop.NetworkManager.settings.modify.system, so the
kid could join a network alone. That action covers every system
connection, not just joining a Wi-Fi network: with it on, the kid could
change wired connections, routes and DNS as well, and NetworkManager
passes polkit nothing that would narrow the grant to Wi-Fi.

Remove the subcommand, the rule and the wifi= setting. Joining or changing
a network now asks for the parent password, as NetworkManager's own
policy has it for an account outside wheel; known networks, scanning and
the Wi-Fi switch never asked and still do not. The settings file helpers
stay for the feature commands, with a neutral key in their test; the
elevation test uses apply as its example; the manual and the plan record
the decision.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comment thread bin/omarchy-parent Resolved
peterholko and others added 5 commits November 26, 2026 10:12
"sudo omarchy-parent apply --remove" without --user deleted the rootpw
drop-in and the polkit admin rule but kept the kid account's grant,
"<kid> ALL=(ALL:ALL) ALL". Without rootpw that grant authenticates the kid
with their own password, so the removal handed the kid root.

remove_posture now deletes every omarchy-parent-* account grant first and
the rootpw drop-in after, whatever --user names, so no moment has a grant
without rootpw. %wheel's grant stays for the machine's next administrator.

The parent test runs remove_posture extracted against scratch directories
with no --user and checks the grants go first; the namespaced probes repeat
it with the real command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Builds before the Wi-Fi delegation was dropped wrote
45-omarchy-parent-wifi.rules on every apply. With wifi=kid it let the kid
change every system network connection, routes and DNS included, without
the parent password, and nothing deleted it after the delegation went.

apply and apply --remove now delete it. Only machines installed from this
branch before the delegation was dropped can carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a child install the boot package records the kid's key as the owner's
slot and the parent's as the second one (recovery=). Drive Encryption
refused every current password but the recorded owner's, so on a Mac the
manual's way to rotate the parent's disk key stopped before changing
anything, and the old parent password kept opening the disk.

owner_slot_matches now also takes the password that opens the slot beside
the owner's, on a child install whose disk holds just those two. The change
journals the owner's slot as kept_owner, refuses to start if a key was
enrolled while the new password was typed, and once the new key is
confirmed records "luks-slots owner=<owner> recovery=<new slot>", on a
rerun too. Elsewhere, and with a third key on the disk, it refuses as
before. x86 records no slots and already changed the parent's key.

The drive-password test runs the change on the Apple fixture: whole,
killed at the slot record and after the new key is added, and refused with
a third key or one enrolled during the prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install/login/sddm.sh deletes SDDM's -auth and -password
pam_gnome_keyring lines, so a password login creates no encrypted keyring.
But the install runs its config phase, where omarchy-apply-lock saves
sddm.omarchy-orig, before its login phase, so the saved copy kept those
lines. The next rebuild from it, which fingerprint setup runs, put them
back into /etc/pam.d/sddm, and so did the restore outside the child
profile. The comment claimed the opposite order.

apply-lock now drops the two lines, with sddm.sh's own patterns, whenever
it builds the child stack from the copy or restores it, which also heals
copies already saved. The restore reads the copy in full first, so one
that can't be read leaves both files as they were.

The unlock test saves a copy carrying the lines, trims the live file with
the real install/login/sddm.sh, and checks that a rebuild and the restore
leave them out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update > Channel is kept off a child install's menu, but its four entries
carried no guard of their own. Menu search lists every entry whose own
guard passes, whatever its parents' guards say, so searching for Edge or
Dev on a child install still found them. Picking one asked for the parent
password, so nothing got past the parent, but the hidden menu wasn't
hidden.

The four entries now carry the child guard too, and the parent test checks
that every entry under a menu kept off a child install is kept off as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread bin/omarchy-parent
fi
}

OMARCHY_PATH="${OMARCHY_PATH:-/usr/share/omarchy}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Command chooses its own path

omarchy-parent manually defaults OMARCHY_PATH. The repository requires commands to use the value supplied by the runtime environment, not define their own fallback. Remove this line and keep path setup at the shared entry point. This repository requirement must be satisfied before merging.

Suggested change
OMARCHY_PATH="${OMARCHY_PATH:-/usr/share/omarchy}"

File Used: AGENTS.md (source)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants