aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorMarvin Borner2022-07-13 15:12:27 +0200
committerMarvin Borner2022-07-13 15:13:00 +0200
commit3e8f62c35fce80343b5359b45924f7bc3fc22d4f (patch)
treee80d8b8bed961e8381491ff52f50d4f0c34f5904 /install.sh
Initial commit
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..5d40318
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,12 @@
+#!/bin/env sh
+
+set -e
+
+gcc -fPIC -c main.c
+ld -x --shared -o /lib/security/pam_trusthome.so main.o
+chmod 755 /lib/security/pam_trusthome.so
+rm main.o
+
+cp ishome /etc/security/
+chown root:root /etc/security/ishome
+chmod 005 /etc/security/ishome