home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / sysadmin / 4873 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.5 KB

  1. Xref: sparky comp.sys.next.sysadmin:4873 comp.sys.next.misc:18985
  2. Newsgroups: comp.sys.next.sysadmin,comp.sys.next.misc
  3. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!csn!nugget.rmNUG.ORG!tssnext.rmNUG.ORG!bruce
  4. From: bruce@tssnext.rmNUG.ORG
  5. Subject: Re: LogoutHook question
  6. Message-ID: <1992Aug25.144803.7160@tssnext.rmNUG.ORG>
  7. Reply-To:  <bruce@TotSysSoft.com> (Bruce Gingery)
  8. Organization:  Total System Software
  9. References: <BtEpMC.L5E@ux1.cso.uiuc.edu>
  10. Date: Tue, 25 Aug 1992 14:48:03 GMT
  11. Lines: 38
  12.  
  13. lemson@ux1.cso.uiuc.edu (David Lemson) writes:
  14. : I know that if a LoginHook exits with a 0, the login proceeds
  15. : normally.  If it exits with a 1, then the login kicks back out to
  16. : the prompt.
  17. : I want to do the same sort of thing with LogoutHook.  If I exit the
  18. : LogoutHook program with a 1, I want it to dump the user back into
  19. : the workspace, not letting them log out.  I tried it, and it doesn't
  20. : work.  Anyone have any idea how I might do this? (something
  21. : undocumented?)
  22. : BTW, in case you're wondering why I don't want to let the user log
  23. : out, it's because I want to force them to go back and reduce their
  24. : disk usage before they log out. 
  25. : -- 
  26.  
  27.   Sounds like a good usage for the logout hook, however perhaps not the
  28. right action.  Perhaps applying a compression utility to their entire
  29. home directory tree, leaving only enough actually IN the directory for
  30. the next login.  It would likely be necessary to arc-off also their
  31. normal .cshrc and .profile, replacing it with new-user defaults, ESPECIALLY
  32. if they must utilize a terminal shell or even remote login shell to
  33. restore their home directory.    Not allowing a logout, especially in
  34. a busy campus environment is apt to merely leave a lot of damage in its
  35. wake, as users DON'T logout, and the next user comes along and merely
  36. grabs a fan and stuffs it into the recycler, pops the empty option, in
  37. order to gain access to the hardware for their own use.  Automated
  38. E-Mail is classic on the NeXT, and could function from the same logout
  39. hook, explaining just what has happened to their directory(s), and
  40. how to go about fixing the problem.
  41.  
  42.   It would certainly be nice to place a ``dock-able'' test-only which
  43. would TEST to see if they're in trouble if they logout...
  44.  
  45. Bruce
  46. -- 
  47. Bruce Gingery          bruce@TotSysSoft.com        (Total System Software)
  48. InterNet:  Bruce.Gingery@p1.f5.n310.z1.fidonet.org (  Cheyenne, Wyoming )
  49.        or  bruce@brucext.TotSysSoft.com
  50. NeXT-Mail: bruce@tssnext.rmNUG.org  < -or- > bruce@TotSysSoft.com
  51.