From f8527f77547ef8c2bd1f94633672b674d4920f88 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 08:13:54 -0400 Subject: Add installation scripts --- utils/install_pam.sh | 5 +++++ utils/install_server.sh | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 utils/install_pam.sh create mode 100644 utils/install_server.sh (limited to 'utils') diff --git a/utils/install_pam.sh b/utils/install_pam.sh new file mode 100644 index 0000000..1cb2149 --- /dev/null +++ b/utils/install_pam.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +make install +cp pam/pam_mfa.py /usr/bin +chmod 755 /usr/bin/pam_mfa.py diff --git a/utils/install_server.sh b/utils/install_server.sh new file mode 100644 index 0000000..fcb5b81 --- /dev/null +++ b/utils/install_server.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cp server/mfad.py server/mfac.py /usr/bin +chmod 755 /usr/bin/mfad.py /usr/bin/mfac.py +ln -s /usr/bin/mfad.py /usr/bin/mfad +ln -s /usr/bin/mfac.py /usr/bin/mfac + +mkdir -p /etc/mfa +cp mfa.conf /etc/mfa/ -- cgit v1.2.3