{"id":991,"date":"2012-04-25T12:44:07","date_gmt":"2012-04-25T12:44:07","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=991"},"modified":"2012-05-10T13:04:15","modified_gmt":"2012-05-10T13:04:15","slug":"loginhooks-in-mac-os-x","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=991","title":{"rendered":"LoginHooks in Mac OS X"},"content":{"rendered":"<h4>How to set up a login hook<\/h4>\n<p><strong>Mac OS X 10.3, 10.4, or later<\/strong><\/p>\n<ol>\n<li>Open Terminal (Applications\/Utilities).<\/li>\n<li>In the Terminal window, type:\n<pre><span class=\"Apple-style-span\" style=\"font-family: monospace;\">sudo defaults write com.apple.loginwindow LoginHook\u00a0<span style=\"color: red;\">\/path\/to\/script<\/span><\/span><\/pre>\n<\/li>\n<li>(where<tt><span style=\"color: red;\">\/path\/to\/script<\/span><\/tt>is the full path to the script that you want to execute when a user logs in\u2014it doesn&#8217;t have to be in the user&#8217;s Home directory).\n<p>This modifies the \/var\/root\/Library\/Preferences\/com.apple.loginwindow file.<\/li>\n<li>Type your password at the prompt, then press Return.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>How to set up a login hook Mac OS X 10.3, 10.4, or later Open Terminal (Applications\/Utilities). In the Terminal window, type: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-991","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=991"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/991\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}