{
 "name": "lock",
 "title": "Lock password",
 "path": "/en/doc/lock/",
 "toc": [
  {
   "level": 1,
   "text": "Lock password",
   "anchor": "lock-password"
  },
  {
   "level": 2,
   "text": "Setting it",
   "anchor": "setting-it"
  },
  {
   "level": 2,
   "text": "What it does",
   "anchor": "what-it-does"
  },
  {
   "level": 2,
   "text": "Locking and opening again",
   "anchor": "locking-and-opening-again"
  },
  {
   "level": 2,
   "text": "Change, remove, forget",
   "anchor": "change-remove-forget"
  }
 ],
 "updated": "2026-10-05",
 "content": "# Lock password\n\nWith a lock password you can **lock the box instead of quitting it**: the window closes, the box keeps running\n(open pages, logins, everything stays), and only someone who knows the password can get back in.\n\n## Setting it\n\n```bash\nonionpod password          # since v1.0.0 — or: bash setup.sh --lock-password\n```\n\n1. enter it twice in the terminal (hidden)\n2. **Check in the launcher window** — exactly where you will type it later, with 👁 to reveal it. If it does not match\n   (3 attempts) or you cancel, **nothing** is set. This way you cannot lock yourself out by accident.\n\nOnly a hash is stored (PBKDF2-SHA256, 600,000 rounds, random salt) in `/etc/onionpod/lock`. The file belongs to\nroot: the launcher can check it, but nobody can change it without sudo. The box itself only learns “lock on/off”.\n\n## What it does\n\n- **Every start** asks for it — not only after locking. Anyone who quits the box and starts it again cannot get in\n  without the password.\n- Not **past the launcher** either: `onionpod start` checks by itself (password via stdin, 2-second pause when wrong).\n- The box menu shows **“🔒 Lock onionpod”**, and ✕ on the window asks “Window closed — quit or lock onionpod?” (buttons “🔒 Lock” / “Quit”).\n\n## Locking and opening again\n\n- **Lock:** box menu → “🔒 Lock onionpod” or ✕ → “🔒 Lock”. All windows are minimized, the bar disappears\n  (window titles would be page titles), only a black background remains; the connection to the window is cut.\n  In the top bar: 🧅 with a padlock.\n- **Open:** double-click “onionpod” or 🧅 → “Open …” → password → everything is back exactly as it was.\n\n## Change, remove, forget\n\n```bash\nonionpod password            # change: old password + sudo\nonionpod password --off      # remove: old password + sudo\nonionpod password --reset    # forgotten: sudo only\n```\n\nAfter `=reset`, a locked box opens on double-click without a password (the check happens on the computer, not in the box).\n",
 "siblings": [
  {
   "name": "index",
   "title": "Overview",
   "path": "/en/doc/"
  },
  {
   "name": "install",
   "title": "Install",
   "path": "/en/doc/install/"
  },
  {
   "name": "usage",
   "title": "Usage — Starter & Box",
   "path": "/en/doc/usage/"
  },
  {
   "name": "cli",
   "title": "Terminal command — CLI",
   "path": "/en/doc/cli/"
  },
  {
   "name": "transit",
   "title": "Vault “Transit” & downloads",
   "path": "/en/doc/transit/"
  },
  {
   "name": "session",
   "title": "Session Messenger",
   "path": "/en/doc/session/"
  },
  {
   "name": "architecture",
   "title": "Architecture",
   "path": "/en/doc/architecture/"
  },
  {
   "name": "leak-test",
   "title": "Leak test",
   "path": "/en/doc/leak-test/"
  },
  {
   "name": "setup",
   "title": "setup.sh reference",
   "path": "/en/doc/setup/"
  },
  {
   "name": "troubleshooting",
   "title": "Troubleshooting",
   "path": "/en/doc/troubleshooting/"
  },
  {
   "name": "limits",
   "title": "Limits & security",
   "path": "/en/doc/limits/"
  }
 ]
}