LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 03:45 AM   #1
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Rep: Reputation: 1
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, 07:20 AM   #2
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
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 07:30 AM. Reason: http://sourceforge.net/projects/idleout/
 
Old 10-01-2012, 08:11 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 09:34 AM   #4
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
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-01-2012, 11:30 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 01:57 PM.
 
Old 10-02-2012, 02:47 AM   #6
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
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, 03:04 AM   #7
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
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, 04:58 PM   #8
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
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 06:53 PM.
 
Old 10-02-2012, 06:53 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 06:57 PM.
 
  


Reply



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 05:46 PM
finding login time and idle time,..etc from a list of users knavramesh Linux - Newbie 2 10-02-2008 10:55 PM
Automatically Disconnecting Users After Five Minutes Idle Time kaplan71 Linux - Server 3 05-21-2008 10:13 PM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 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
Open Source Consulting | Domain Registration