Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ghost Users

1 view
Skip to first unread message

socs

unread,
Aug 31, 1998, 3:00:00 AM8/31/98
to
I am running a Sun Solaris Server. One problem I have with my Unix
server is that sometimes users tend to forget to logout. So when I check the
users who are logged in using finger/who/whodo it shows me alot of users who
are idle for long period of time.

In some cases this is true, but sometimes the user have not logged out
properly and there exist this ghost user in the list when I type who. How to
create a script or whatever to kill users who are idle for long period of
time and the ghost users.

Pls help....... Urgent ....... Giving extra work to do for me ...... Pls
......


Michael Thomas Cope

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
<followups trimmed>
In comp.unix.questions socs <so...@po.jaring.my> wrote:
: I am running a Sun Solaris Server. One problem I have with my Unix

Instead of doing this you may want to increase the number of pty's to
allow more connections.
http://www3.hmc.edu/docs/coolstuff/etcsystem/

After making sure this is really what you want to do...
and assuming you are using tcsh or csh for user's shell:
add the line

set autologout = 86400 #logout after 24 hours of idle time

to your /etc/.login file
be aware that users can put
unset autologout
in there ~/.cshrc to disable this.
-Mike

--
Michael Cope: Harvey Mudd College '00; Armand Hammer UWC '96
E-mail: Michae...@hmc.edu

Pasquale Angiuli

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to socs

socs wrote:

> I am running a Sun Solaris Server. One problem I have with my Unix
> server is that sometimes users tend to forget to logout. So when I check the
> users who are logged in using finger/who/whodo it shows me alot of users who
> are idle for long period of time.
>
> In some cases this is true, but sometimes the user have not logged out
> properly and there exist this ghost user in the list when I type who. How to
> create a script or whatever to kill users who are idle for long period of
> time and the ghost users.
>
> Pls help....... Urgent ....... Giving extra work to do for me ...... Pls
> ......

see /etc/default/login

by

Randy Styka

unread,
Sep 3, 1998, 3:00:00 AM9/3/98
to
socs wrote:
>
> I am running a Sun Solaris Server. One problem I have with my Unix
> server is that sometimes users tend to forget to logout. So when I check the
> users who are logged in using finger/who/whodo it shows me alot of users who
> are idle for long period of time.
>
> In some cases this is true, but sometimes the user have not logged out
> properly and there exist this ghost user in the list when I type who. How to
> create a script or whatever to kill users who are idle for long period of
> time and the ghost users.
>
Sometimes the /etc/utmp file has old entries in it, and who
will show users who really aren't on the system. If the issue
truly is idle users, you can use the TMOUT environment variable,
if users get to a shell prompt.

Our company wrote (and sells) a program called LOGMON that
logs off idle users. We monitor cpu usage for each user and
their child processes. LOGMON lets you vary the inactivity time
by user, time of day, etc. We won't log off a user who is
running a long job with no keyboard activity, unlike other
approaches. For details, send a message to log...@computron.com.
Good luck!

--
+-----------------------------------------------------------------+
| Computronics Randy Styka, ra...@computron.com |
| 4N165 Wood Dale Road Phone: 630/941-7767 |
| Addison, Illinois 60101 USA Fax: 630/941-7714 |
| Web: http://www.computron.com |
+-----------------------------------------------------------------+

Slawomir Oczkowski

unread,
Sep 3, 1998, 3:00:00 AM9/3/98
to
Pasquale Angiuli wrote:
>
> socs wrote:
>
> > I am running a Sun Solaris Server. One problem I have with my Unix
> > server is that sometimes users tend to forget to logout. So when I check the
> > users who are logged in using finger/who/whodo it shows me alot of users who
> > are idle for long period of time.
> >
> > In some cases this is true, but sometimes the user have not logged out
> > properly and there exist this ghost user in the list when I type who. How to
> > create a script or whatever to kill users who are idle for long period of
> > time and the ghost users.
> >
> > Pls help....... Urgent ....... Giving extra work to do for me ...... Pls
> > ......
>
> see /etc/default/login
>
> by


.... and set the TIMEOUT parameter to time you want....

by too.

0 new messages