Skip to content
/ yubilock Public

lock X display when yubikey is removed (OpenBSD)

License

Notifications You must be signed in to change notification settings

e-zk/yubilock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

yubilock
=========
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 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

About

lock X display when yubikey is removed (OpenBSD)

Topics

Resources

License

Stars

Watchers

Forks

Languages