🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #671

Re: LogoutHook question

#671
From: bruce
Date: Tue, 25 Aug 1992 14:48
38 lines
2505 bytes
lemson@ux1.cso.uiuc.edu (David Lemson) writes:
: I know that if a LoginHook exits with a 0, the login proceeds
: normally.  If it exits with a 1, then the login kicks back out to
: the prompt.
: I want to do the same sort of thing with LogoutHook.  If I exit the
: LogoutHook program with a 1, I want it to dump the user back into
: the workspace, not letting them log out.  I tried it, and it doesn't
: work.  Anyone have any idea how I might do this? (something
: undocumented?)
: BTW, in case you're wondering why I don't want to let the user log
: out, it's because I want to force them to go back and reduce their
: disk usage before they log out. 
: -- 

  Sounds like a good usage for the logout hook, however perhaps not the
right action.  Perhaps applying a compression utility to their entire
home directory tree, leaving only enough actually IN the directory for
the next login.  It would likely be necessary to arc-off also their
normal .cshrc and .profile, replacing it with new-user defaults, ESPECIALLY
if they must utilize a terminal shell or even remote login shell to
restore their home directory.    Not allowing a logout, especially in
a busy campus environment is apt to merely leave a lot of damage in its
wake, as users DON'T logout, and the next user comes along and merely
grabs a fan and stuffs it into the recycler, pops the empty option, in
order to gain access to the hardware for their own use.  Automated
E-Mail is classic on the NeXT, and could function from the same logout
hook, explaining just what has happened to their directory(s), and
how to go about fixing the problem.

  It would certainly be nice to place a ``dock-able'' test-only which
would TEST to see if they're in trouble if they logout...

Bruce
-- 
Bruce Gingery          bruce@TotSysSoft.com        (Total System Software)
InterNet:  Bruce.Gingery@p1.f5.n310.z1.fidonet.org (  Cheyenne, Wyoming )
       or  bruce@brucext.TotSysSoft.com
NeXT-Mail: bruce@tssnext.rmNUG.org  < -or- > bruce@TotSysSoft.com
Technical Details
Message-ID: <1992Aug25.144803.7160@tssnext.rmNUG.ORG>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!csn!nugget.rmNUG.ORG!tssnext.rmNUG.ORG!bruce
References: <BtEpMC.L5E@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!csn!nugget.rmNUG.ORG!tssnext.rmNUG.ORG!bruce
From: bruce@tssnext.rmNUG.ORG
Subject: Re: LogoutHook question
Message-ID: <1992Aug25.144803.7160@tssnext.rmNUG.ORG>
Reply-To:  <bruce@TotSysSoft.com> (Bruce Gingery)
Organization:  Total System Software
References: <BtEpMC.L5E@ux1.cso.uiuc.edu>
Date: Tue, 25 Aug 1992 14:48:03 GMT
Lines: 38