Explain what we are doing before asking for sudo
This commit is contained in:
parent
a75c9ef072
commit
2cd841a687
@ -3,11 +3,13 @@
|
|||||||
~/.local/share/omarchy/bin/omarchy-show-logo
|
~/.local/share/omarchy/bin/omarchy-show-logo
|
||||||
|
|
||||||
if [[ "--remove" == "$1" ]]; then
|
if [[ "--remove" == "$1" ]]; then
|
||||||
|
echo -e "\e[32mLet's remove your Fido2 device from sudo authentication.\n\e[0m"
|
||||||
yay -Rns --noconfirm libfido2 pam-u2f
|
yay -Rns --noconfirm libfido2 pam-u2f
|
||||||
sudo rm -rf /etc/fido2
|
sudo rm -rf /etc/fido2
|
||||||
sudo sed -i '\|^auth[[:space:]]\+sufficient[[:space:]]\+pam_u2f\.so[[:space:]]\+cue[[:space:]]\+authfile=/etc/fido2/fido2$|d' /etc/pam.d/sudo
|
sudo sed -i '\|^auth[[:space:]]\+sufficient[[:space:]]\+pam_u2f\.so[[:space:]]\+cue[[:space:]]\+authfile=/etc/fido2/fido2$|d' /etc/pam.d/sudo
|
||||||
echo -e "\e[32m\nYou've successfully removed the fido2 device setup.\e[0m"
|
echo -e "\e[32m\nYou've successfully removed the fido2 device setup.\e[0m"
|
||||||
else
|
else
|
||||||
|
echo -e "\e[32mLet's setup your Fido2 device for sudo authentication.\n\e[0m"
|
||||||
yay -S --noconfirm --needed libfido2 pam-u2f
|
yay -S --noconfirm --needed libfido2 pam-u2f
|
||||||
|
|
||||||
tokens=$(fido2-token -L)
|
tokens=$(fido2-token -L)
|
||||||
|
@ -3,11 +3,13 @@
|
|||||||
~/.local/share/omarchy/bin/omarchy-show-logo
|
~/.local/share/omarchy/bin/omarchy-show-logo
|
||||||
|
|
||||||
if [[ "--remove" == "$1" ]]; then
|
if [[ "--remove" == "$1" ]]; then
|
||||||
|
echo -e "\e[32mLet's remove your fingerprint scanner from authentication.\n\e[0m"
|
||||||
yay -Rns --noconfirm fprintd
|
yay -Rns --noconfirm fprintd
|
||||||
sudo rm -rf /etc/pam.d/polkit-1
|
sudo rm -rf /etc/pam.d/polkit-1
|
||||||
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/sudo
|
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/sudo
|
||||||
echo -e "\e[32mYou've successfully removed the fingerprint setup.\e[0m"
|
echo -e "\e[32mYou've successfully removed the fingerprint setup.\e[0m"
|
||||||
else
|
else
|
||||||
|
echo -e "\e[32mLet's setup your fingerprint scanner for authentication.\n\e[0m"
|
||||||
yay -S --noconfirm --needed fprintd usbutils
|
yay -S --noconfirm --needed fprintd usbutils
|
||||||
|
|
||||||
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix'; then
|
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix'; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user