> 1) Using "who" or "w" I can see who is logged in.  How can I kick someone
> off, given the information from "who" ?

Once you see that they're logged in, do "ps ax | grep username" with
their user name in place of username. Find the instance of their shell
with the earliest start time and kill it. For example:


# ps ax | grep bkocik

 bkocik 21824 21816  0 09:43:56 ?        0:00 /bin/sh /home/bkocik/.xinitrc
  bkocik 27918     1  0 12:41:23 ?        2:29 /usr/local/bin/netscape
  bkocik 21955     1  0 09:44:34 ?        0:01 perfmeter skynet -geometry 72x439-0-70
  bkocik 25863     1  0   Oct 13 ?        0:00 rsh -n hdwrx8 olvwm
  bkocik 21965     1  0 09:44:43 ?        0:09 perfmeter notes -geometry 72x439-425-70

In this case, pid 21824 is an instance of my shell (/bin/sh) that was
started at 09:43:56. So, "kill -9 21824" would log me out quite
forcefully. The output you're looking at above is actually from the "ps
-ef | grep bkocik" command in Solaris, and is only part of the actual
output I got (I'm a lot busier than the processes above make me look
:-).  It will look different in Linux but you can see what it's all
about. There are other ways to do this I'm sure, but this is one.


---
Bill Kocik
Information Systems
Medar, Inc.
E-mail: [EMAIL PROTECTED]
Web:    http://www.medar.com

Reply via email to