<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class=""><div class="">On Mar 22, 2016, at 6:09 PM, Lance Terada, CTR &lt;<a href="mailto:lance.terada.ctr@mhpcc.hpc.mil" class="">lance.terada.ctr@mhpcc.hpc.mil</a>&gt; wrote:</div><div class="">Hello,<br class="">Does anyone know how to configure activating the screensaver after pulling your token out of the CAC reader?</div></blockquote><div class=""><br class=""></div>Lance,<div class=""><br class=""></div><div class="">If you already have enabled use of smartcards for login, you can simply click on on the “Advanced…” tab at the lower right-hand corner.</div><div class=""><br class=""></div><div class="">System Preferences -&gt; Security &amp; Privacy -&gt; &nbsp;Advanced…</div><div class=""><img height="240" width="287" apple-width="yes" apple-height="yes" apple-inline="yes" id="10FDD5A2-DD9D-4459-8930-0E5357AF9322" src="cid:D53C4D1F-7A32-4010-9FE2-23E981FEA529" class=""></div><div class=""><br class=""></div><div class="">This could be scripted with the following commands (Replace &lt;username&gt; with the actual account name):</div><div class="">(This ends up being the easiest syntax for many)</div><br class="">sudo /usr/libexec/plistbuddy -c "Add:tokenRemovalAction integer 1"&nbsp;/Users/&lt;username&gt;/Library/Preferences/com.apple.screensaver.plist<br class="">sudo /usr/libexec/plistbuddy -c "Add:askForPassword integer 1"&nbsp;/Users/&lt;username&gt;/Library/Preferences/com.apple.screensaver.plist<br class="">sudo /usr/libexec/plistbuddy -c "Add:askForPasswordDelay integer 0"&nbsp;/Users/&lt;username&gt;/Library/Preferences/com.apple.screensaver.plist<br class=""><br class=""><div class=""><br class=""></div><div class="">You can also READ what the settings are using ‘defaults':</div><div class=""><br class=""></div><div class="">$ sudo defaults read&nbsp;&nbsp;/Users/&lt;username&gt;/Library/Preferences/com.apple.screensaver<br class=""><br class=""></div><div class="">Which would give you the following:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">{</div><div class="">&nbsp; &nbsp;&nbsp;askForPassword = 1;</div><div class="">&nbsp; &nbsp;&nbsp;askForPasswordDelay = 0;</div><div class="">&nbsp; &nbsp;&nbsp;tokenRemovalAction = 1;</div><div class="">}</div></blockquote><div class=""><br class=""></div><div class=""><span style="font-family: Helvetica; orphans: 2; widows: 2; text-align: -webkit-auto;" class=""><br class=""></span></div><div class=""><span style="font-family: Helvetica; orphans: 2; widows: 2; text-align: -webkit-auto;" class="">- Shawn</span></div><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font face="Helvetica" style="color: rgb(0, 0, 0);" class=""><span style="font-size: 12px;" class="">_____________________________________________________________________<br class="">Shawn Geddis<span class="Apple-tab-span" style="white-space: pre;">                                </span>&nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                        </span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font><font face="Helvetica" class=""><span style="font-size: 12px;" class="">geddis@{Mac | Me | iCloud}.com</span></font><font face="Helvetica" style="color: rgb(0, 0, 0);" class=""><span style="font-size: 12px;" class=""><br class=""></span></font><span style="orphans: auto; widows: auto;" class="">Security and Certifications Engineer</span><font face="Helvetica" style="color: rgb(0, 0, 0);" class=""><span style="font-size: 12px;" class="">, Apple &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:geddis@apple.com" class="">geddis@apple.com</a><br class=""><br class="">Smart Card Services<span class="Apple-converted-space">&nbsp;</span>&nbsp;Project/Dev Lead: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>Project&nbsp;Wiki:<span class="Apple-tab-span" style="white-space: pre;">                </span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[<a href="http://SmartCardServices.MacOSFforge.Org" class="">SmartCardServices.MacOSFforge.Org</a>]<br class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>Mailing&nbsp;Lists:<span class="Apple-tab-span" style="white-space: pre;">                </span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;[<a href="http://lists.macosforge.org/mailman/listinfo" class="">Lists.MacOSForge.Org/mailman/listinfo</a>]</span></font></div><div style="color: rgb(0, 0, 0); word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font face="Helvetica" class=""><span style="font-size: 12px;" class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>SCS Contact:<span class="Apple-tab-span" style="white-space: pre;">                                </span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;[<a href="mailto:scs-cotact@macosforge.org" class="">scs-cotact@macosforge.org</a>]</span></font></div><div style="color: rgb(0, 0, 0); word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font face="Helvetica" class=""><span style="font-size: 12px;" class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>SCS Admin:<span class="Apple-tab-span" style="white-space: pre;">                                </span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[<a href="mailto:scs-admin@macosforge.org" class="">scs-admin@macosforge.org</a>]</span></font></div><div style="color: rgb(0, 0, 0); word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font face="Helvetica" class=""><span style="font-size: 12px;" class="">_____________________________________________________________________</span></font><br class=""></div></span></div></div></div></div></div></div></div></div></div>
</div>
<br class=""></body></html>