tag:blogger.com,1999:blog-1361728184873317046.post4456259186007044635..comments2023-03-04T04:13:12.436-08:00Comments on Rusty is a geek.: Idle Logouts in Mac LabsRusty Myershttp://www.blogger.com/profile/06012914840758427861noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-1361728184873317046.post-74678706168850827182015-11-01T08:01:00.032-08:002015-11-01T08:01:00.032-08:00Bojan, you can use the ioreg command in a script t...Bojan, you can use the ioreg command in a script to check the idle input time, then kill the loginwindow when it reaches your specified time. That would logout any user without any warning. Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-24858224921792097502015-10-31T08:29:06.025-07:002015-10-31T08:29:06.025-07:00What if we want to remove the whole interface and ...What if we want to remove the whole interface and just have a simple script that automatically reboots after a set amount of time?<br />Like after 10 minutes of idle, reboot without any popups or anything?<br /><br />ThanksBojanhttps://www.blogger.com/profile/15632438527653511292noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-65451180613117985182015-06-08T12:31:06.239-07:002015-06-08T12:31:06.239-07:00Sounds like the preference file isn't there, o...Sounds like the preference file isn't there, or isn't plain text. Try recreating the preference at this exact location:<br />"/Library/CLMadmin/Config/edu.psu.its.clc.IdleLogoutSettings.plist"<br />You can use the example plist from the GitHub Project.Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-3158412147751788452015-06-08T12:15:45.523-07:002015-06-08T12:15:45.523-07:00There are several errors. First is: "ERROR! T...There are several errors. First is: "ERROR! The file is not readable, or does not exist!" The second is "IdleLogout.Open: Warning! Failed to find the default key 'IgnoreGroup', using default of admin." The account logged in is using a profile that was customized from a user account that is an admin. Is that why it didn't run?<br /><br />ThanksN74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-22746024252495874922015-06-08T11:03:18.564-07:002015-06-08T11:03:18.564-07:00The logs are here: /Users/Shared/IdleLogoutThe logs are here: /Users/Shared/IdleLogoutRusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-87994287422131159272015-06-08T11:02:08.642-07:002015-06-08T11:02:08.642-07:00It didn't work. I logged in as a regular user ...It didn't work. I logged in as a regular user and opened Chrome and Powerpoint and let it sit. 20 minutes went by and it didn't log off. It should have at 15 minutes (900 secs). Is there a log file I can refer to see why nothing happened?<br /><br />ThanksN74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-42614505639616982592015-06-08T10:25:27.870-07:002015-06-08T10:25:27.870-07:00Hooray! No error. I'm testing it out now (15mi...Hooray! No error. I'm testing it out now (15min Idle time). ThanksN74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-89022110575228034712015-06-08T08:32:27.894-07:002015-06-08T08:32:27.894-07:00N74JW - That sounds like an issue with the prefere...N74JW - That sounds like an issue with the preference file. I think I made a mistake telling you to use defaults, as it's probably creating a binary file that IdleLogout can't ready. Try converting using: <br />plutil -covert xml1 "/Library/CLMadmin/Config/edu.psu.its.clc.IdleLogoutSettings.plist"<br /><br />Use only plain text XML for the preference for now.<br />I need to covert the preferences to CFPrefsD, but have not done it yet.Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-4699523445849216712015-06-08T08:16:29.779-07:002015-06-08T08:16:29.779-07:00I tried your XML file from GitHub, but it didn'...I tried your XML file from GitHub, but it didn't work. When I went to run the application interactively, it threw an XML error. I copied the script verbatim, I just changed the directory where Idle Logout.app is located to /Applications<br /><br />The error (which makes no sense to me)<br /><br />"An exception of class XmlException was not handled. The application must shut down."<br /><br />Exception message: msg:XML parser error 4: not well-formed (invalid token)<br />Exception Error Number: 2<br /><br />OS X freezes after that and I have to reboot.N74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-32017018639650953712015-06-08T07:52:37.238-07:002015-06-08T07:52:37.238-07:00N74JW - Try this link for the launch agent plist: ...N74JW - Try this link for the launch agent plist: https://gist.github.com/rustymyers/72863aa8537f5a660c22Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-34565963185824674732015-06-08T07:51:17.296-07:002015-06-08T07:51:17.296-07:00N74JW - You can create a launch agent that starts ...N74JW - You can create a launch agent that starts the IdleLogout.app: <br /><br />$ cat /Library/LaunchAgents/edu.psu.its.clc.idlelogout.plist <br /><br /><br /><br /><br /><br /> Label<br /> edu.psu.clc.idlelogout<br /> ProgramArguments<br /> <br /> open<br /> /Library/CLMshared/Startup Items/Idle Logout.app<br /> <br /> RunAtLoad<br /> <br /><br /><br /><br />Documentation:<br />https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.htmlRusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-10849290068112946702015-06-08T07:48:09.388-07:002015-06-08T07:48:09.388-07:00How do you tie the app to a launch agent when a us...How do you tie the app to a launch agent when a user logs in? This is great stuff! ThanksN74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-16021017298576644872015-06-08T07:12:35.151-07:002015-06-08T07:12:35.151-07:00N74JW - Check out the GitHub page, there is a sect...N74JW - Check out the GitHub page, there is a section on preferences: https://github.com/CLCMacTeam/IdleLogout<br /><br />You'll need to configure the preferences to match your needs. <br /><br />For example, to tell the app to log people out after 4 hours (14400 seconds), you'd want to set the ComputerIdleAfterNumSeconds key to 14400: <br />defaults write "/Library/CLMadmin/Config/edu.psu.its.clc.IdleLogoutSettings.plist" ComputerIdleAfterNumSeconds -string "14400"<br /><br />To test, we set that value to something small, like 10 seconds. That way, we see the dialog and know it's working. Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-15005675527691427972015-06-08T07:07:38.029-07:002015-06-08T07:07:38.029-07:00Thanks for the quick response. How do you configur...Thanks for the quick response. How do you configure the app's settings if there is no interface? I need the Mac to logoff after fours hours of inactivity, no materr what is happening (Whether or not MS Word/Powerpoint, Firefox, Chrome are open.)N74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-50966391782456974392015-06-08T06:59:17.291-07:002015-06-08T06:59:17.291-07:00N74JW - Check the Activity Monitor.app for the Idl...N74JW - Check the Activity Monitor.app for the IdleLogut.app process. The application has no interface when running, and should only show a window when the user has been idle longer than the configured setting.<br /><br />Not seeing anything in the dock or any window appear when starting the application is the expected results when double-clicking the app. We actually start the app with a launch agent when a user logs in.<br /><br />Hope that helps, let me know if you have any questions!Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-67796161910063566462015-06-08T06:56:08.258-07:002015-06-08T06:56:08.258-07:00Application doesn't even run. When it is doubl...Application doesn't even run. When it is double-clicked, nothing happens. OS X 10.10.3, Mac Mini.N74JWhttps://www.blogger.com/profile/10349944176203239844noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-79930232162751812422015-03-10T05:31:54.616-07:002015-03-10T05:31:54.616-07:00Tariq, What is failing to work for you? We've ...Tariq, What is failing to work for you? We've been testing the Idle Logout.app on 10.10.2 for a while and it is working for us. Please try downloading one of the compiled copies of the Idle Logout.app for testing: https://github.com/CLCMacTeam/IdleLogout/blob/master/IdleLogout%20app/Idle-Logout.1.2.tar.bz2Rusty Myershttps://www.blogger.com/profile/06012914840758427861noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-58751674568374944332015-03-09T09:52:27.252-07:002015-03-09T09:52:27.252-07:00I need to disable these on Mac OS X 10.10.2 (Yosem...I need to disable these on Mac OS X 10.10.2 (Yosemite) But this is not working on that. It don't have these entries in object file.Anonymoushttps://www.blogger.com/profile/07188525122930334251noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-63501960768571829002013-01-18T16:49:35.688-08:002013-01-18T16:49:35.688-08:00Awesome, this is actually exceedingly useful! Than...Awesome, this is actually exceedingly useful! Thanks Rusty!Unknownhttps://www.blogger.com/profile/00025074508463563663noreply@blogger.comtag:blogger.com,1999:blog-1361728184873317046.post-76509374538714539082013-01-18T16:48:59.650-08:002013-01-18T16:48:59.650-08:00Awesome! This is actually really useful. Awesome! This is actually really useful. Unknownhttps://www.blogger.com/profile/00025074508463563663noreply@blogger.com