Remote force logout and lockout of user

Dennis Fazio dfz at mac.com
Sun Jun 13 12:48:01 PDT 2004


What is the best way to force logout a particular user 
<uncooperative_teenager> on a remote system (of which I have administrator 
rights) and temporarily prevent additional logins?

I've come up with:
ssh to remote system and login to my admin account
use "passwd uncooperative_teenager" and change their password
use ps -aux to see all processes
kill process ID of their 
/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow 
process.

I've tested this on my local system, but haven't yet tried it on a remote 
system. Any better alternatives?
-- 
Dennis Fazio
dfz at mac.com



More information about the X-Unix mailing list