[X-Unix] Remote force logout and lockout of user
James Bucanek
subscriber at gloaming.com
Sun Jun 13 16:53:50 PDT 2004
Dennis Fazio wrote on Sunday, June 13, 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.
Doesn't work on mine. Sure, it logs the user out, but loginwindow just restarts and logs 'em right back in again.
I also tried 'killall -u baduser' with similar results.
Personally, I'd just take the gloves off. Change the password, then
sudo reboot
James
______________________________________________________
James Bucanek <mailto:privatereply at gloaming.com>
More information about the X-Unix
mailing list