LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-17-2002, 04:31 PM   #1
bspicer
LQ Newbie
 
Registered: Apr 2002
Posts: 26

Rep: Reputation: 15
Inactivity setting


Is there a way in Redhat 7.2 to log out users if they are inactive over 30 min?

Also, we have a closed system and would like to telnet in as root. How can we change the security level to allow this?

thanks
 
Old 05-17-2002, 05:46 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You can easily accomplish it by using an output of
w
it shows you the IDLE time you can use it in conjuction with awk to strip out the IDLE time similar to this
w | awk '{print $1 " " $5}'
it will output the table
USER IDLE
bob 7:43m
You can use it in a perl script to format the output to suite your needs, and then you can use the obtained info to filter through ps and find out which processes are running by the particular user - kill user's processes, send him/her a text message with echo, etc.
as for the second question I'd suggest you to use ssh - a secure alternative to telnet (telnet sends all sensetive info in clear text and the password can be sniffed very easily; ssh, on the other hand, uses encription to send the data over the wire).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network stops responding after inactivity branall1 Linux - Networking 12 12-12-2005 01:02 PM
TCP Inactivity Timer jonty_11 Linux - General 1 01-23-2005 11:23 PM
detecting computer inactivity ... emathias Programming 1 10-24-2004 07:46 PM
after inactivity screen becomes flickery yzman Linux - Newbie 2 11-17-2003 06:22 AM
sshd timeout for inactivity. acid2000 Linux - Software 5 03-18-2003 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:39 PM.

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