yubilock

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

README (581B)


      1 yubilock
      2 =========
      3 hotplugd script to lock X when yubikey (or any fido device) is detached.
      4 
      5 install/usage
      6 --------------
      7 1. add a doas.conf(5) rule to allow root to run the lock command as $xuser:
      8 
      9 	# alows root to run xlock as xuser
     10 	permit nopass keepenv root as xuser cmd /usr/X11R6/bin/xlock
     11 
     12 2. open the 'detach' script and change $xuser.
     13    change $DISPLAY, and $lock_cmd if necessary.
     14 
     15 3. copy 'detach' to /etc/hotplug/detach.
     16 
     17 4. set the appropriate permissions:
     18 
     19 	# chmod 750 /etc/hotplug/detach
     20 
     21 5. start/reload hotplugd:
     22 
     23 	# rcctl start hotplugd; rcctl reload hotplugd