Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > LogoutHook not working in 10.4.2...

LogoutHook not working in 10.4.2...
Thread Tools
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 29, 2005, 06:41 PM
 
I can't seem to get LogoutHook working in 10.4.2 using either the defaults write method or the editing the ttys file method. If you can, I'd like some people to test this logout mechanism. Here's how:

1. Create a UNIX script that does anything. Touching a file on your desktop is enough.
2. Execute this command in the terminal, minus the quotes, and changing /path/to/script to the path to your script: 'sudo defaults write com.apple.loginwindow LogoutHook /path/to/script'
3. If successful, report it here and put script in /etc and make it owned by root:wheel and chmod it to 700
4. If successful (i.e. the script executes when you logout) report it here.

I appreciate your help.
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Jul 30, 2005, 12:06 PM
 
I'd shoot the question to the MacEnterprise.org mailing lists. (This is the wonderful site formerly known as www.macosxlabs.org ). There's lots of people well-versed in LoginHooks there.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:17 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,