From 9a44a928ccebdceb5a4dd9a4d67168cc04d1227f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 28 Sep 2024 01:10:13 -0400 Subject: ostp.d: auth: Add user authentication Signed-off-by: Ian Moffett --- setup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 setup.sh (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..3ac16a1 --- /dev/null +++ b/setup.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +OTDPASSWD_LOC=/usr/local/bin/pwcheck + +if [[ $EUID -ne 0 ]] +then + echo "Please run as root!" + exit 1 +fi + +cp tools/pwcheck $OTDPASSWD_LOC -- cgit v1.2.3