logging out a user

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jeremy C. Reed
日付:  
題目: logging out a user
On Fri, 9 Jan 2004, Bart Garst wrote:

> I have a user logged in named foo. I want to log him off. As root, what
> command would I use to accomplish this?


kill his shell. (Use "ps auxwww" to find the user and the shell.)

Maybe use write(1) to tell them first. (Don't use SIGKILL -9 because that
doesn't allow programs to shutdown cleanly.)

Jeremy C. Reed
http://bsd.reedmedia.net/