diff --git a/Makefile b/Makefile index 401b8cf..255e94c 100644 --- a/Makefile +++ b/Makefile @@ -11,3 +11,4 @@ install: all cp $(LIBRARY_NAME) $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) chmod 444 $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) chown root:wheel $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) + ./install-sudo diff --git a/install-sudo b/install-sudo new file mode 100755 index 0000000..0b0ac9d --- /dev/null +++ b/install-sudo @@ -0,0 +1,10 @@ +#!/bin/bash + +if grep "pam_watchid" /etc/pam.d/sudo > /dev/null; then + echo "Already configured for sudo." + exit +fi + +sed '2i\ +auth sufficient pam_watchid.so +' /etc/pam.d/sudo \ No newline at end of file