Professional Web Applications Themes

IDLED Replacement? - Linux / Unix Administration

All: I'm an OpenBSD V3.7 user, I use 3.7 for my production systems. The idled port is apparently broken (won't compile from the ports tree), and the problem is likely just a port that's not been maintained for a while (the code is quite old too!) :) I'm looking for a utility that will scan the idle time of logged in users every so often, and automatically end shell sessions that have been idle too long - old school problem, indeed. :) Thanks in advance for any replies. A Happy New Year to all those celebrating a holiday in the ...

  1. #1

    Default IDLED Replacement?

    All:

    I'm an OpenBSD V3.7 user, I use 3.7 for my production systems. The idled port
    is apparently broken (won't compile from the ports tree), and the problem is
    likely just a port that's not been maintained for a while (the code is quite
    old too!) :)

    I'm looking for a utility that will scan the idle time of logged in users
    every so often, and automatically end shell sessions that have been idle too
    long - old school problem, indeed. :)

    Thanks in advance for any replies. A Happy New Year to all those celebrating a
    holiday in the Winter Season!

    -DMFH

    ----
    __| |_ __ / _| |_ ____ __
    dmfh / _` | ' \| _| ' \ _ / _\ \ /
    \__,_|_|_|_|_| |_||_| (_) \__/_\_\
    ----
    DMFH Guest

  2. #2

    Default Re: IDLED Replacement?

    DMFH wrote: 

    Hrm. Old code indeed.

    The site was rather painful for me to look at, in fact. :)

    What shells do your users use? From what I can see, both ksh and bash
    support the environment variable TMOUT, and allow you to make it
    read-only by setting it with the shell-builtin "readonly" (irrelevant
    shell variables snipped for clarity):

    [0:af/f/fd0man> readonly
    [0:af/f/fd0man> readonly TMOUT=30
    [0:af/f/fd0man> readonly
    declare -r TMOUT="30"
    [0:af/f/fd0man> timed out waiting for input: auto-logout

    That was bash on a NetBSD system. The same thing happens with ksh on my
    FreeBSD box:

    fd0manallspice$ readonly
    KSH_VERSION
    TMOUT
    fd0manallspice$ ksh: timed out waiting for input

    If the user attempts to change it:

    fd0manallspice$ TMOUT=3
    ksh: TMOUT: is read only

    It looks like tcsh supports the same sort of thing, but not original
    csh. YMMV... here is a link to a table of shell equivalents just in
    case you may want/need it:

    http://fringe.davesource.com/Fringe/Computers/Languages/Shell_Conversion

    Since OpenBSD's default shell is sh (ksh, pdksh), you should be able to
    enforce timeouts if your users don't use a nonstandard shell. If you
    only have sh, ksh, bash, or tcsh in /etc/shells, then you should be able
    to enforce it unless a user decides to remain logged in intentionally
    while remaining idle, which you could probably detect with a cron job
    running as frequently as every few hours.

    HTH,
    Mike
    Michael Guest

  3. #3

    Default Re: IDLED Replacement?

    On 2006-01-06, Michael Trausch <nope.net> wrote:
     

    Thank you very much for this excellent and informative response. :) I threw in
    the towel yesterday on IDLED after gdb couldn't read the corefile it produces
    after a few seconds - no backtrace, no debugging, ugh - I think this was
    because of either the way it was compiled or I read something about tracing
    being unavailable on Sparc core's until somewhere in 2004, however, I am a
    core ysis newbie. :)

    ----
    __| |_ __ / _| |_ ____ __
    dmfh / _` | ' \| _| ' \ _ / _\ \ /
    \__,_|_|_|_|_| |_||_| (_) \__/_\_\
    ----
    DMFH Guest

Similar Threads

  1. A replacement for about-to-be-closed NGs
    By Mark in forum ASP Components
    Replies: 7
    Last Post: June 1st, 09:21 PM
  2. Table replacement
    By osuguy in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: October 6th, 04:38 PM
  3. connectstring replacement
    By raynman13 in forum Coldfusion Database Access
    Replies: 0
    Last Post: August 19th, 11:38 AM
  4. Media replacement
    By B_Carlson@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 27th, 09:30 PM
  5. [OT]: CVS replacement
    By Xavier in forum Debian
    Replies: 16
    Last Post: August 17th, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139