Validate a login deployment

Run real-system checks only on an isolated test machine with a spare VT and test account. Do not let a script alter your real PAM, getty or shell configuration.

  1. Verify ordinary user selection works without a PAM prompt, including post-login autostart.
  2. In direct getty mode, authenticate using the intended PAM service and confirm account policy, notices and any challenge prompts are honored.
  3. Select a console shell. Check id, pwd, $HOME, $USER and $SHELL; check the expected login startup behavior.
  4. Select X11 and Wayland separately. Confirm VT, desktop identity, runtime directory, D-Bus and log ownership. On logind systems use loginctl session-status.
  5. Log out, inspect session cleanup, then repeat login. Interrupt or cancel where appropriate and verify resources do not remain open.
  6. Check remembered selection, duplicate session labels, unavailable desktops and permission failures. Confirm denied operations do not change protected files.
  7. Restore the original getty/profile setup and confirm recovery works.

For the existing dry-run X11 VT probe, read and manually run scripts/manual/locktty_xtty_keep_test.sh. It is a diagnostic probe, not proof of successful login or authorization to modify a service.

Run the isolated console echo and restoration probe with scripts/manual/pam-console-pty.sh. For native PAM test fixtures, run go test -race -tags pam_integration ./auth on Linux with PAM development headers. These exercises use temporary services or pseudoterminals. They leave host PAM and getty settings alone.

Record actual system, init/PAM stack, binary commit, outcomes and sanitized logs in the relevant GitHub PR or issue. There is no claimed real-VT validation result on this page. A normal release requires functional and secure login evidence beyond successful compilation and headless tests.