Solved

Log off idle users by tty?

Posted on 1998-08-03
12
990 Views
Last Modified: 2013-12-26
I'm running SCO 3.2.4 without a DOS partition.  I have two modem lines which have idle
users on a long distance call for hours.  I don't want to use the idle out feature or the autolog off because other users running long posting or printing jobs appear idle and will get logged off too (or at least I think they will).  Is there any way to auto log off idle tty1A and tty2A? Note: I don't know if this makes a difference, but I am not using the uucp.  We are simply using the modems for dial in from PC to the Unix box.  I want this to be an automatic process without any assistance from root.  I'm the only IT person for the company and don't have time to babysit these users.  Thanks.
0
Comment
Question by:brando
12 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1295455
Yes.

0
 

Author Comment

by:brando
ID: 1295456
Adjusted points to 50
0
 

Author Comment

by:brando
ID: 1295457
Edited text of question
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1295458
kill -9 <lowest pid of process using tty2A && pid is a shell>
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1295459
as root:
kill -9 <lowest pid of process using tty2A && pid is a shell>
0
 
LVL 2

Expert Comment

by:shchuka
ID: 1295460
I think what brando wants is to have those processes killed automatically, without root's intervention.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:brando
ID: 1295461
Edited text of question
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1295462
Write a script using the "w" or "ps ax" command to identify the users you want to kick off, thenn kill there session shell.

Call this script via cron.
0
 
LVL 5

Expert Comment

by:ecw
ID: 1295463
Set them up as ksh users and set TMOUT in their .profile.  eg.

 typeset -r TMOUT=600  # 10 minutes grace
0
 

Accepted Solution

by:
xilef earned 50 total points
ID: 1295464
What you are looking for is idled.

You can get it e.g. from ftp://sunsite.cnlab-switch.ch/mirror/SuSE/SuSE-Linux/5.2/full-names/i386/idled* or from any other SuSE mirror.
There are rpms for SuSE-Linux but there sources are also there so you should be able to compile them on your system too.

I haven't used idled myself, but the description seems to describe what you are looking for.

0
 

Author Comment

by:brando
ID: 1295465
ecw's response was very close.  This does log out the user's; however, our software runs in the sh shell.  Once switched over to this shell it logs the user out of ksh but does not log off the modems.  At this point I give up.
0
 

Author Comment

by:brando
ID: 1295466
I've got it.  I was making this far too complicated.  I disable the actual device (tty1A), connected to the control device (tty1a).  Sent the command to change the S19 register for the modem to 15 (ATS19=15).  Enable tty1A.  It works.  
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 78
Expand LInux Boot partition remotly 3 86
Prevent this page from creating additional dialogs. 3 403
Sed question 2 68
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now