|
|
Log out background users after time limit
To do this, save the following as a file named com.yourname.backgroundUserLogout.plist in theYou should be able to just place it in the root-level LaunchAgents folder (/Library/LaunchAgents). LaunchAgents always get run inside a user's session, upon login (in contrast, root-level LaunchDaemons by default run in the loginwindow context). I haven't tested this specificially for your hint, but in my other work with LaunchAgents, I haven't noticed any difference between it being placed in the user-level LaunchAgents folder and the all-users LaunchAgents folder.
Log out background users after time limit
Absolutely true. But I needed different settings for different users, so I had to do it this way instead.
Log out background users after time limit
Ok. Still I think it's worth mentioning: having a global LaunchAgent would probably be very useful for people managing Macs with large numbers of (network) users so that copying one to every individual user's folder would simply be impractical. In such a scenario, you could still individualize the script based on group membership - e.g. if you want to have individual logout times:
Adding this to the beginning of your third ProgramArguments string and replacing
Log out background users after time limit
Very nice! Edited on Jun 07, '10 09:01:50AM by Sesquipedalian
Log out background users after time limit
I put this in /Library/LaunchAgents but I'm guessing I must not have properly integrated your code into the above hints code.
Log out background users after time limit
Yes, but then it's not user-specific, and he specifically wanted to make it user-specific.
Log out background users after time limit
What would one name the plist file if using your suggestion to set this up for all users in the root folder? Just remove the "username" part? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|