Add pam_exec-ssh to system-local-login
This commit is contained in:
parent
7c0a4af2c8
commit
3b5409be2c
3
install
3
install
@ -16,6 +16,7 @@ install() {
|
||||
sudo pacman -S --needed \
|
||||
abook \
|
||||
alacritty \
|
||||
expect \
|
||||
ffmpeg \
|
||||
firefox \
|
||||
fzf \
|
||||
@ -66,6 +67,8 @@ install() {
|
||||
/usr/bin/pam_exec-ssh
|
||||
mkdir ~/.ssh/unlock.d
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user