diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-28 01:10:13 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-28 01:10:13 -0400 |
commit | 9a44a928ccebdceb5a4dd9a4d67168cc04d1227f (patch) | |
tree | 8f64888b89e9ffe6f5dd6fd541623b15184ccbb9 /setup.sh | |
parent | 2229015eec1804cf33225fd28931a9e43e1fdf2e (diff) |
ostp.d: auth: Add user authentication
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'setup.sh')
-rw-r--r-- | setup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |