Idle Users - how can i recognize them
Hello!
I have question about user idle time. When I execute w command I have following result:
# w
10:03am up 72 days, 21:26, 2 users, load average: 0.09, 0.09, 0.08
User tty login@ idle JCPU PCPU what
root pts/0 9:59am w
jsmith pts/2 2:24pm115:22 -sh
I'm root and other person, jsmith, has more then 115 hours of idle time.
When I execute ps -ef |grep jsmith I get:
# ps -ef |grep jsmith
jsmith 16987 16780 0 Feb 18 pts/2 0:00 -bash
jsmith 16742 16740 0 Feb 18 pts/2 0:00 -bash
root 16627 871 0 Feb 18 ? 0:01 sshd: jsmith [priv]
jsmith 16631 16630 0 Feb 18 ? 0:00 /opt/ssh/libexec/sftp-server
root 16738 871 0 Feb 18 ? 0:02 sshd: jsmith [priv]
jsmith 16740 16738 0 Feb 18 ? 0:02 sshd: jsmith@pts/2
root 19436 19361 0 10:02:08 pts/0 0:00 grep jsmith
jsmith 16630 16627 0 Feb 18 ? 0:01 sshd: jsmith@notty
My question is: How can I know that user jsmith isn't working anything. Can I kill his shell as root because his idle time is so long?
Thank you
Last edited by laki47; 02-23-2009 at 04:24 AM.
|