SUMMARRY:Autologout question?

From: Bobby Huynh (bobby@c2sism1.monmouth.army.mil)
Date: Fri Aug 09 1996 - 07:13:48 CDT


Hi all,

Thanks for your inputs. The problems is solved. The solution is edit .profile
by adding TMOUT =####in second then export TMOUT. It should work.

--Bobby

***********************
Here is question.

> I have solaris2.5 and cde. I'd like to logout the user if his idle time is
more
> than 1/2hour. I have the very same app on SCO UNIX and I have an 'idleout'
> program on SCO. Could anyone point me how to configure this problems.
>

Below is the suggestions that have sent to me.

***********************************
how about TMOUT=??? in /etc/profile file...

**********************

If they use the Korn Shell, this is a trivial problem. Just "export
TMOUT=<...>", where the <...> is the number of seconds of idle time.

**************************
> Yes, I am using ksh. Would you be kind to tell me where to edit it?
>
> --Bobby
>
>
> If they use the Korn Shell, this is a trivial problem. Just "export
> TMOUT=<...>", where the <...> is the number of seconds of idle time.
>
>

TMOUT is an environment variable, which can be set in a number of
places. Each individual user can set it in their own "$HOME/.profile"
file, but that would probably not be what you want.

When people first log in, the file "/etc/profile" is used, and this file
is under the system administrator's control. So you can add a line like
this to "/etc/profile":

        export TMOUT=86400 ## 24 hours

Try "man ksh" for details about what counts as a login shell.

Warning: What you put into "/etc/profile" is only an initial value for
TMOUT. Any user who understands the Korn Shell fairly well will be able
to change it to a higher value.

good luck

-fp

*****************************************
If we're talking about the tcsh or csh shell this excerpt from the tcsh man
page may be what you're looking for:

9. AUTOMATIC LOGOUT/LOCKING
       The automatic locking and logout time are controlled by
       the variable autologout. The value of the first word is
       the number of minutes of inactivity will be allowed before
       automatically logging the user out. When that many min-
       utes have been reached, the shell prints "auto-logout" and
       dies (without executing ~/.logout). The default for tcsh
       is to set autologout for 60 minutes on login shells, and
       when the user is root. To disable autologout (for
       instance in a window system), unset the shell variable
       autologout.

       The value of the optional second word indicates the number
       of minutes of inactivity after which the user will be
       prompted for his login password to continue working. Fail-
       ure to enter the correct password 5 times, results in
       auto-logout.

Hope that helps!

Later,

<SS>

--
<mailto:ssayer@hijinx.com> | <http://voyager.hijinx.com/~ssayer>
 HijinxMOO (interactive) ==> telnet://voyager.hijinx.com:8888
 HijinxMOO (www service) ==> http://voyager.hijinx.com:8080/

*********************

Hi,

I use tcsh as our shell. It has an auto-logout feature built in.

marc **********************

Set TMOUT if using ksh. TMOUT can be set to a desired number of seconds.

Doug

******************

Bobby, The tsch shell has this enabled by default on Solaris2.5 .

Bruce Hodge Networks and Communications Group ccdbh@cc.newcastle.edu.au University of Newcastle postmaster@cc.newcastle.edu.au Ph (049) 21 5563 Bruce.Hodge@newcastle.edu.au Fax (049) 21 6910

*************************

Sorry didn't see the cde. My apologies

Bruce Hodge Networks and Communications Group ccdbh@cc.newcastle.edu.au University of Newcastle postmaster@cc.newcastle.edu.au Ph (049) 21 5563 Bruce.Hodge@newcastle.edu.au Fax (049) 21 6910 **************

Look out for a daemon called "idled" on http://www.ensta.fr/internet/unix/sys_admin/. This is actually a list of useful sysadmin stuff. Hope this will help you

Regards Max Heise

-- /------------------------------------------------------------\ | Max Heise --- Bonsai \\|// | | email : hei@nuertingen.netsurf.de /----\|/--\ | | bonsai@birdland.es.bawue.de | X X | | | | / | | | Bosslerstr.22 | / | | | D-73265 Dettingen/Teck | (___ | | | Germany | \_____/ | | | Tel: +49 7021 82772 \_/ / /___/ | | / / / | | (___/ | \------------------------------------------------------------/

************************* Hi!

Our company sells a product called LOGMON. This software monitors cpu usage and logs off idle users. We do not just look at keyboard activity, so we won't log off a user who is running a long job with no keyboard interaction.

LOGMON allows you to vary the inactivity time by user, time of day, terminal, etc. It can also vary the cpu activity level and the method of logout by application.

For more details, send a message to info@computron.com. Thanks!

+-----------------------------------------------------------------+ | Computronics Randy Styka, randy@computron.com | | 4N165 Wood Dale Road Phone: 708/941-7767 | | Addison, Illinois 60101 USA Fax: 708/941-7714 | +-----------------------------------------------------------------+

P.S. Please mention this in your summary to the list. Thanks! ****************

Status: RO



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:07 CDT