commit b633c1ef2ebb4dc9a73bba7580cac127f52013c7
parent 3feab6f4a321abd34c6b50c179a85f9217c05b66
Author: zakaria <e-zk@users.noreply.github.com>
Date: Mon, 31 Jan 2022 20:03:24 +1000
Update README
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README b/README
@@ -3,19 +3,21 @@ 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
+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
+ # rcctl start hotplugd; rcctl reload hotplugd