Source From Here
Question
I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged in in the first place? and related... does your method work if the user is logged into an X11 DE (not a requirement I'm just curious)?
How-To
There's probably an easier way, but I do this:
1. See who's logged into your machine -- use who or w:
2. Look up the process ID of the shell their TTY is connected to:
3. Laugh at their impending disconnection (this step is optional, but encouraged)
4. Kill the corresponding process:
Question
I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged in in the first place? and related... does your method work if the user is logged into an X11 DE (not a requirement I'm just curious)?
How-To
There's probably an easier way, but I do this:
1. See who's logged into your machine -- use who or w:
2. Look up the process ID of the shell their TTY is connected to:
3. Laugh at their impending disconnection (this step is optional, but encouraged)
4. Kill the corresponding process:
沒有留言:
張貼留言