Need to logout idle users, all shells...

Hello:

I am having trouble figuring out how to log off users that have been idle for x minutes? All of the machines are Solaris 9, we connect with ssh, and there are some x-windows users as well. What can I set that will hold up if the user changes shells? How will x-windows users be effected?

Thanks for the Help,

-- Dan

[356 byte] By [dough779] at [2007-11-25 23:20:10]
# 1
You could just write a simple shell script that "kills" the user logins that are greater than x amount of minutes. Use the "w" command and awk on field 4. Apply simple logic and pipe to "kill".
bhf21279 at 2007-7-5 18:08:09 > top of Java-index,General,Talk to the Sysop...