auth: add Debian/Ubuntu PAM service skd

This commit is contained in:
2025-12-28 14:49:36 +01:00
parent 098ba7b187
commit 5c9ef1ddcb
4 changed files with 38 additions and 1 deletions

View File

@ -7,6 +7,7 @@
## Build, Test, and Development Commands
- `bash -n sk.sh` — Syntax check to catch parsing errors early.
- `sudo ./scripts/install.sh` — On Ubuntu/Debian creates `/etc/pam.d/skd` and sets `SKD_AUTH_PAM_SERVICE=skd` if unset.
- `shellcheck sk.sh` — Linting for style, safety, and portability; fix or suppress with clear rationale.
- `./sk.sh <user> disable|enable [countdown] [sound] [seconds]` — Run the tool; requires root. Use a test account when iterating.
- `sudo ./sk.sh demo_user disable countdown sound 90` — Example invocation combining optional modes.