yubilock

Lock X when YubiKey is detached (OpenBSD)
git clone _git@git.zakaria.org/yubilock.git
Log | Files | Refs | README | LICENSE

commit 8c38077836441ff9f9cc030b369087143582fe03
parent 42a36c2980e0b2bfd5c482e227ec913d923be347
Author: zakaria <e-zk@users.noreply.github.com>
Date:   Tue, 11 Jan 2022 00:10:14 +1000

Update README

Diffstat:
MREADME | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README b/README @@ -4,12 +4,18 @@ hotplugd script to lock X when yubikey (or any fido device) is detached. install/usage ============== -1. add a doas.conf(5) rule to allow root to run xlock as $xuser. +1. add a doas.conf(5) rule to allow root to run the lock command as $xuser: + # alows root to run xlock as xuser + permit nopass keepenv root as xuser cmd /usr/X11R6/bin/xlock + 2. open the 'detach' script and change $xuser. change $DISPLAY, and $lock_cmd if necessary. + 3. copy 'detach' to /etc/hotplug/detach + 4. set the appropriate permissions: # chmod 750 /etc/hotplug/detach + 5. start/reload hotplugd: # rcctl start hotplugd; rcctl reload hotplugd