08-25-2011, 01:02 AM #1
how to force automatic logout after logging in?
- Member Since
- Aug 25, 2011
Hello MacOSX users,
I'm in a situation where I would like to be able to initiate an unconditional logout when a particular (evil) user attempts to log into one of my iMac computers.
I have both a login and logout script defined on my iMacs, so what I would like to do is add some code to the login tcsh shell script to perform this function.
I can identify the UserID of the "evil" person(s) attempting to login ... no
(Users are authenticating via Active Directory and I'm using AD support supplied with Snow Leopard)
Question is, what do I do next? How do I tell MacOSX to abort the login process and return to the login screen?
Has anyone here ever tried doing anything like this before?
I've been playing around with the killing of UNIX processes but not sure which one I should be killing?
Also tried creating an AppleScript application that does an unconditional logout by emulating the pressing of the key combination "command:shiftption:Q" but I can't get it to work during login process.
(my created app works fine if run manually once login process has completed)
Fishing for ideas here ... any takers?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By roflwaffle1237 in forum OS X - Operating SystemReplies: 9Last Post: 12-13-2010, 01:48 AM
By Trolle in forum Switcher HangoutReplies: 12Last Post: 09-28-2010, 07:26 AM
By Chris H. in forum OS X - Operating SystemReplies: 8Last Post: 05-15-2010, 11:02 PM
By jureynolds in forum Apple NotebooksReplies: 2Last Post: 08-22-2006, 12:30 PM
By areth2j in forum Apple NotebooksReplies: 6Last Post: 03-06-2006, 06:31 AM