<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=4&amp;t=506" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-11-20T02:05:08+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=4&amp;t=506</id>
<entry>
<author><name><![CDATA[SporkWitch]]></name></author>
<updated>2016-11-20T02:05:08+01:00</updated>
<published>2016-11-20T02:05:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=9162#p9162</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=9162#p9162"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=9162#p9162"><![CDATA[
OSX == UNIX.  Does it have / use udev?  If so, the udev rules we've been using for years for this functionality on linux should work on Mac as well with only minor modification.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4454">SporkWitch</a> — Sun Nov 20, 2016 2:05 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jeantil]]></name></author>
<updated>2016-09-30T22:17:29+01:00</updated>
<published>2016-09-30T22:17:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=9061#p9061</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=9061#p9061"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=9061#p9061"><![CDATA[
People reading this thread may be interested in <a href="http://forum.yubico.com/viewtopic.php?f=8&amp;t=1997" class="postlink">[Project] [OS X] Yubikey Lock and Unlock Daemon for Mac OS X</a> (I know I was <img src="https://forum.yubico.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /> )<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4499">jeantil</a> — Fri Sep 30, 2016 10:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cactusdove]]></name></author>
<updated>2016-03-04T01:49:39+01:00</updated>
<published>2016-03-04T01:49:39+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=8431#p8431</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=8431#p8431"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=8431#p8431"><![CDATA[
I wrote a quick thing for myself, if you have NodeJS 4 or greater installed.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">npm install osx-screensaver usb-detection<br /></div><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">const osxScreensaver = require('osx-screensaver'),<br />     usbDetect = require('usb-detection'),<br />     key = {};<br /><br />usbDetect.find(function(err, devices) {<br />   devices.forEach(function(device) {<br />      if (device.manufacturer == &quot;Yubico&quot;) {<br />         key.vid = device.vendorId;<br />         key.pid = device.productId;<br />         console.log('found', device, err)<br />         listen(); // listen for usb removal<br />      }<br />   })<br />});<br /><br />function listen(){<br />   usbDetect.on(`remove:${key.vid}:${key.pid}`, function(device) { <br />      console.log('remove', device);<br />      osxScreensaver().then(() =&gt; {<br />         console.log('Screensaver started');<br />      });<br />   });<br />}<br /></div><br /><br />you could convert this for less then Node 4 pretty easily and also run this as a process with 'forever'.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4238">cactusdove</a> — Fri Mar 04, 2016 1:49 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[samir]]></name></author>
<updated>2012-03-30T15:43:53+01:00</updated>
<published>2012-03-30T15:43:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=2981#p2981</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2981#p2981"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2981#p2981"><![CDATA[
We are not aware of any other product besides Rohos which can meet your requirement for the Mac platform.<br /> <br />You can potentially consider using the cross-platform 'Libykpers' library from Yubico (available at: <a href="http://code.google.com/p/yubikey-personalization/" class="postlink">http://code.google.com/p/yubikey-personalization/</a>) to implement a solution based on the YubiKey challenge/response functionality and use this library to communicate with the YubiKey to present a challenge and read the response. In the challenge-response mode, the application on your system can send a challenge to the YubiKey at regular intervals of time and the YubiKey if present in the USB port will respond to that challenge. If the correct YubiKey is inserted, the response must match with the expected response based on the presented challenge. This library works on Windows, Mac and Linux platforms.<br /> <br />Regarding your other question, the YubiKey presents itself as a USB keyboard to the operating system and not as a USB memory device.<br /><br />Thanks!<br />Samir.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1076">samir</a> — Fri Mar 30, 2012 3:43 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[erikm]]></name></author>
<updated>2012-03-29T20:40:27+01:00</updated>
<published>2012-03-29T20:40:27+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=2980#p2980</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2980#p2980"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2980#p2980"><![CDATA[
Hello,<br />I have the same request as Dane.  I checked out Rohos but it does more than I need it an actually caused system problems for me.  I just posted the request below at MacScripter.net but I would really appreciate advice or help from any of you.<br />Thank you,<br />Erik<br /><br /><!-- m --><a class="postlink" href="http://macscripter.net/viewtopic.php?pid=149844">http://macscripter.net/viewtopic.php?pid=149844</a><!-- m --><br /><br />Hello,<br /><br />I am writing to request help with configuring my MBP so that it the screen will lock when I remove my Yubikey (<!-- m --><a class="postlink" href="http://www.yubico.com/personal-use">http://www.yubico.com/personal-use</a><!-- m --> - “The YubiKey is a hardware authentication token that looks like a small USB memory stick, but it is actually a keyboard.”) from a USB port. I do not need any sort of unlocking capability upon reinsertion of the Yubikey.<br /><br />There is an application called Rohos (<!-- m --><a class="postlink" href="http://www.rohos.com/products/rohos-logon-key-for-mac">http://www.rohos.com/products/rohos-logon-key-for-mac</a><!-- m -->) that can sense removal of the Yubikey and lock the screen.  However, the application costs $32 and it does far more than I want it to do.  It also caused problems with logging into other user accounts.<br /><br />There is an application called Proximity (<!-- m --><a class="postlink" href="http://code.google.com/p/reduxcomputing-proximity">http://code.google.com/p/reduxcomputing-proximity</a><!-- m -->) that will execute a script if a paired Bluetooth device loses connection with the Mac.  I like the basic functionality but would like for the trigger to be removal of the USB Yubikey.<br /><br />I wonder if I could use Launchd (via Lingon) to periodically check (every minute, perhaps) if the specific Yubikey is present.  If it is not, it could run an script to that will lock the screen (or activate the screensaver).  A script on this site (<!-- m --><a class="postlink" href="http://macscripter.net/viewtopic.php?id=24748">http://macscripter.net/viewtopic.php?id=24748</a><!-- m -->) seems to contain some of the features I need, but I am not sure if the Yubikey appears to the Mac as the UBS drive does.   In terminal I navigated to Volumes and listed the contents but did not see the Yubikey.<br /><br />Do any of you have any ideas or code?<br /><br />Thank you!<br />Erik<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2003">erikm</a> — Thu Mar 29, 2012 8:40 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[samir]]></name></author>
<updated>2010-03-17T13:53:52+01:00</updated>
<published>2010-03-17T13:53:52+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=2130#p2130</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2130#p2130"/>
<title type="html"><![CDATA[Re: REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2130#p2130"><![CDATA[
Rohos provides YubiKey based login solutions for Windows and MAC OS platforms which seems to be addressing your requirements. For more information, please visit the Yubico Wiki link given below:<br /><br /><!-- m --><a class="postlink" href="http://wiki.yubico.com/wiki/index.php/Applications:Mac_OS_Logon">http://wiki.yubico.com/wiki/index.php/A ... c_OS_Logon</a><!-- m --><br /><br />We hope this helps!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1076">samir</a> — Wed Mar 17, 2010 1:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dane Jones]]></name></author>
<updated>2010-03-16T17:29:00+01:00</updated>
<published>2010-03-16T17:29:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=506&amp;p=2125#p2125</id>
<link href="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2125#p2125"/>
<title type="html"><![CDATA[REQ: Locking the System when removing the Yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=506&amp;p=2125#p2125"><![CDATA[
The idea is that when I remove my Yubikey the system notices the change and locks the system automatically.  This seams like it could easily be a generic utility that could perform the operation upon the removal of any USB device identified to trigger the event.<br /><br />Anyone know of, suggest, ect of a utility that can perform this?  Problematically it sounds simple to do but I'm currently lacking the know how to develop such an app.  When the mood strikes me I'll attempt to create it myself using AutoIt.<br /><br />I'm looking for a solution for both Linux and Windows.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1119">Dane Jones</a> — Tue Mar 16, 2010 5:29 pm</p><hr />
]]></content>
</entry>
</feed>