Recover and roll back
Before a login experiment, keep a normal login on tty1 and a separate administrator session available. Test only a spare VT. Installation does not replace your getty or modify PAM policy, so rollback should be limited to the changes you opted into.
For a systemd spare-VT login loop, use the recovery session to stop the experimental
service: sudo systemctl stop getty@tty2.service. Restore the saved override or
remove only the experimental drop-in. systemctl revert removes all local overrides
for the named service, so use it only when you have confirmed there is nothing else
to preserve. Reload the daemon and restart the original getty.
For a profile loop, remove the GoCDM autostart block from the profile you edited. Do this from the other VT or your system’s recovery environment. Preserve unrelated profile contents. If all logins are unavailable, follow the distribution’s recovery procedure rather than disabling authentication checks.
To undo a source installation, remove only the GoCDM binary and supplemental files
from the prefix used during installation. A staged make install DESTDIR=... shows
the installed paths. Remove profile/getty integration separately before deleting the
binary. Never remove system PAM configuration as an uninstall step.
After restoring normal login, confirm both an administrator and the affected user can log in and log out. Save sanitized logs for investigation before testing again.