New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

how to force automatic logout after logging in?


Post Reply New Thread Subscribe

 
Thread Tools
SookieSam

 
Member Since: Aug 25, 2011
Posts: 3
SookieSam is on a distinguished road

SookieSam is offline
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
problem.

(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?

SookieSam
QUOTE Thanks

Post Reply New Thread Subscribe


« Lion Install on New SSD | iMac can't share external hard drive LION »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Automatic Logout when lid closed areth2j Apple Notebooks 6 03-06-2006 06:31 AM

All times are GMT -4. The time now is 03:11 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?