Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site gatech.UUCP Path: utzoo!watmath!clyde!akgua!gatech!arnold From: arnold@gatech.UUCP (Arnold Robbins) Newsgroups: net.unix-wizards Subject: Re: Auto-logoff facility in Unix Message-ID: <6970@gatech.UUCP> Date: Tue, 8-May-84 13:39:59 EDT Article-I.D.: gatech.6970 Posted: Tue May 8 13:39:59 1984 Date-Received: Wed, 9-May-84 07:40:41 EDT References: <833@unm-cvax.UUCP> Organization: Committee to Eliminate Redundancy Committee Lines: 31 [This Space For Rent] This would really only work on USG Unix, but if you have the TIMEOUT facility in your /bin/sh, and you (i.e. the system administrator) want to force auto-logout, it is pretty easy. Just add two lines to /etc/profile: TIMEOUT=... # set to amount of time readonly TIMEOUT The USG sh, when it is a login shell, reads /etc/profile, and then .profile in the home directory. Making TIMEOUT readonly will 1) keep users from changing it, and 2) automatically export it to subshells. Of course the knowledgeable/devious user can always get around it: while : # : exits w/value 0, or true do sleep 300 # sleep 5 minutes done which keeps the port tied up, the shell busy, and doesn't use a whole lot of cpu time. Nothing's perfect. -- Arnold Robbins CSNET: arnold@gatech ARPA: arnold%gatech.csnet@csnet-relay.arpa UUCP: ...!{akgua, allegra, rlgvax, sb1, ut-sally}!gatech!arnold "All this digital stuff is just a fad. Analog is the way to go." -- William M. Robbins, 1984