Skip to content

Instantly share code, notes, and snippets.

View storm-legacy's full-sized avatar

storm-legacy storm-legacy

View GitHub Profile
@storm-legacy
storm-legacy / etc_pam.d_system-login
Last active July 5, 2021 15:46
Encrypted partitions mounting on login
# add those after ^
# Modules executing scripts on login and using your password passed to stdin as input for commands
# Feel free to locate scripts wherever you like, e.g. `/etc/pams.d/pam_crypthome.sh` => `/etc/scripts/unlock_home.sh`
# (...)
auth include system-auth
# add those after ^
auth optional pam_exec.so expose_authtok /etc/pams.d/pam_crypthome.sh
auth optional pam_exec.so expose_authtok /etc/pams.d/pam_cryptswap.sh
# (...)