FILE=/etc/pam.d/sudo
if [ -f "$FILE" ]
then
if !(grep -q "pam_tid.so" $FILE)
then
echo "auth sufficient pam_tid.so\n$(sed "/#/d" $FILE)" | sudo tee $FILE > /dev/null
else
echo "Touch ID already enabled."
fi
else
echo "$FILE does not exist."
fi
Yukarıdaki kodu touch.sh diye bir dosya oluşturup içine kaydedin ve ardından aşağıdaki kodları terminale girin
chmod +x touch.sh
./touch.sh
Artık sudo komutlarını kullanırken yetki vermek için parmağınızı okutmanız yeterli olacaktır.