According to Rod Gotty: While burning my CPU.
> 
> I read the linux-learn faq and it is very good; however, it did not answer
> some of my questions:
> 
> 1) Using "who" or "w" I can see who is logged in.  How can I kick someone
> off, given the information from "who" ?

Take the who command, you see the following;
root     tty1     Oct 21 21:57
richard  tty2     Oct 21 22:46

Now you want to "kick" as you say, richard off the system, you must be root
of course, now do 'ps ax' and look for the process running on tty 2 (in this
case) it would be something like the following.

  PID TTY STAT  TIME COMMAND
11558   2 S    0:00 /bin/login -- richard

11558 is the PID and 2 is the tty. 

kill 11558 (this should also kill child processes as well).
{man kill}

He will now be removed from your system.

Remember one thing, that is a brutal way to rid your system of a user.


> 
> Thanks
> -Rod
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to