Add pam_exec-ssh to system-local-login

This commit is contained in:
Jordan Holt 2021-04-30 22:08:28 +01:00
parent 7c0a4af2c8
commit 3b5409be2c

View File

@ -16,6 +16,7 @@ install() {
sudo pacman -S --needed \ sudo pacman -S --needed \
abook \ abook \
alacritty \ alacritty \
expect \
ffmpeg \ ffmpeg \
firefox \ firefox \
fzf \ fzf \
@ -66,6 +67,8 @@ install() {
/usr/bin/pam_exec-ssh /usr/bin/pam_exec-ssh
mkdir ~/.ssh/unlock.d mkdir ~/.ssh/unlock.d
ln -s ~/.ssh/id_ed25519 ~/.ssh/unlock.d/id_ed25519 ln -s ~/.ssh/id_ed25519 ~/.ssh/unlock.d/id_ed25519
sudo sed -i '$a auth optional pam_exec.so expose_authtok /usr/bin/pam_exec-ssh' \
/etc/pam.d/system-local-login
} }
} }