LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2012, 04:45 AM   #1
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-Jessie \/ Unix SCO 5.7. in production, not for play.
Posts: 30

Rep: Reputation: 0
Idleout in SQUEEZE


Good morning fellow,
I am in process of migrating to Unix, SCO Debian Squeeze ( only console, NO GRAPHIC gdm ) and I can not solve the problem of expired connections.

In SCO idelout use the instruction set in / etc / default / idleout idle values ​​= seconds.

In Linux I do not see where to set this situción.
TMOUT there is, but it is not valid, TMOUT only "kill" inactive sessions are in "prompt" or bash shell.

I have in production an "ERP" users to "login" with the same name from "putty" ssh,
but very often closed "putty" without logging off, so it is eternally busy / dev / PTSX.
******************************************
Also see the configuration of / etc / ssh / sshd_config adding:
keepalive yes
ClientAliveInterval 3600 (1 hour)
but has no effect NONE.
**********************************************
Also i was looking at the packages
autolog "aptitude install autolog", last updated in 2002,
but performed the searches of inactive username and serves me, all my users enter the same login to "ERP"
**********************************************
Also see the package "idleout"
"http://sourceforge.net/projects/idleout/" contains the sources but I can not understand,
is imperative to have installed "finger" for installation and
the "daemon" in / etc/rc2.d must be performed manually.

its performance is quite good, but inexplicably the 'daemon' stops working after 2 hours of boot from / etc / init.d / idleout start.

I will appreciate if anyone knows any package or script that succeed logout users of a specified period of idle time.

I find it really surprising that Linux does not incorporate the function "idleout" as the basis of its installation.


1salu2
and thanks in advance for your attention.
 
Old 10-01-2012, 08:20 AM   #2
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-Jessie \/ Unix SCO 5.7. in production, not for play.
Posts: 30

Original Poster
Rep: Reputation: 0
IDLEOUT , TMOUT --> Logout users of a specified period of idle time.

Good morning fellow,

I am in process of migrating to Unix SCO --> Debian Squeeze (single console, not graphics) and I can not solve the problem of expired connections.


In SCO idelout use the instruction set in /etc/default/idleout idle values ​​= seconds.

In Linux I do not see where to set this situción.

TMOUT there is, but it is not valid, TMOUT only "kill" inactive sessions are in "prompt" or bash shell.

I have in production an "ERP" users to "login" with the same name/login from "putty" ssh,
but very often closed "putty" without logging off, so it is eternally busy /dev/ptsX.

******************************************
Also see the configuration of /etc/ssh/sshd_config adding:

keepalive yes
ClientAliveInterval 3600 (1 hour)

but has no effect NONE.

**********************************************
Also i was looking at the packages

autolog "aptitude install autolog", last updated in 2002,

but performed the searches of inactive username and serves me, all my users enter the same login to "ERP"

**********************************************
Also see the package "idleout"
contains the sources but I can not understand.
** is imperative to have installed "finger" for installation and
the "daemon" in /etc/rc2.d must be performed manually.

its performance is quite good, but inexplicably the 'daemon' stops working after 2 hours (aprox) of boot from /etc/init.d/idleout start.

I will appreciate if anyone knows any package or script to perform properly the "kill" process "idle".



I find it really surprising that Linux does not incorporate the function "idleout" as the basis of its installation.





1salu2

and thanks in advance for your attention.

Last edited by barnarasta; 10-01-2012 at 08:30 AM. Reason: http://sourceforge.net/projects/idleout/
 
Old 10-01-2012, 09:11 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
These articles might help:
http://www.walkernews.net/2007/05/15...user-in-linux/
http://eng.eelcowesemann.nl/linux-un...ut-idle-users/
http://www.cyberciti.biz/faq/linux-t...gout-variable/
 
Old 10-01-2012, 10:34 AM   #4
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-Jessie \/ Unix SCO 5.7. in production, not for play.
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks for your interest and references "bigrigdriver"
but unfortunately that TMOUT comment and is not valid for my intention, TMOUT only works if the user was prompt, but if you are working within a process, cobol, java, dialog, Oracle, Informix, etc ... and closes his notebook without 'logout', does not perform TMOUT expulsion "kill PID" being active user / dev / pts
 
Old 10-02-2012, 12:30 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I merged your two *cough* closely related threads, and politely ask
that you don't double-post in the future.


Thanks!

Cheers,
Tink

Last edited by Tinkster; 10-02-2012 at 02:57 PM.
 
Old 10-02-2012, 03:47 AM   #6
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-Jessie \/ Unix SCO 5.7. in production, not for play.
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
I merged your two *cough* closely related threads, and politely ask
that you don't double-port in the future.

Thanks!

Cheers,
Tink
My apologies,
I may do a double click by mistake and created two thread
 
Old 10-02-2012, 04:04 AM   #7
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 319

Rep: Reputation: 80
I think that the easiest solution is to modify the program that you are using throught putty to actually have a timeout (so it will return to the prompt and get flushed after some time). I think also that this has to be the desidered behavior, let me explain:
Il something kills the program after a timeout then there is the risk of data loss, if the program closes itself then there is no more risk. Now if this is feasible or not that depends on the program that you are using.
 
Old 10-02-2012, 05:58 PM   #8
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-Jessie \/ Unix SCO 5.7. in production, not for play.
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks "Celyr" for your opinion,
to people who connect to the server SQUEEZE, I try to continually educate them to close properly but the connection is not always possible.

Took weeks looking for a package "idleout" similar to that in SCO-Unix but can not find anything really useful and I think if Debian is really intended for data server for "ERP" with Informix Software, Oracle, Cobol, Sculptor, etc .... or is only for web Serbs and / or starting to think to create competition with "windows" and forgetting their desks console functions only, text only.

I'm not a espert in-shell script, but I started to gather information and I think the situation can be resolved:

1) Initially locating PID exceeding 60 minutes inactive.

Code:
who-Tu | awk '$ 6> "01:00" {print $ 1, $ 3, $ 7}'
2) Kill the resulting processes

Code:
/ bin / kill -13-Tu `who | awk '$ 6>" 01:00 "{print $ 7}'`
3) finally put in a cron.hourly to run .

For now the point (2) does not work
If someone wants to help me do it I'll be happy.

Last edited by Tinkster; 10-02-2012 at 07:53 PM.
 
Old 10-02-2012, 07:53 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Can you please use code-tags rather than quotes?
And what is kill -13-Tu supposed to do?


Also I don't understand how you (or SCO's idleout, for that matter) can
possibly tell the difference between a session that's being actively
used and one that's just sitting there if it's NOT bash. Killing
everything arbitrarily after one hour seems like a recipe for
disaster to; but of course just knowing that you're using some sort
of ERP doesn't tell us much about use-cases, or usage patterns.



Cheers,
Tink

Last edited by Tinkster; 10-02-2012 at 07:57 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable users after a specific time period hhvv Linux - General 5 12-21-2008 06:46 PM
finding login time and idle time,..etc from a list of users knavramesh Linux - Newbie 2 10-02-2008 11:55 PM
Automatically Disconnecting Users After Five Minutes Idle Time kaplan71 Linux - Server 3 05-21-2008 11:13 PM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 11:51 AM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration