is there a way to execute a script when logging out?

From: Edwin R Wolfe Jr. <ewolfe_at_umich.edu>
Date: Mon, 30 Aug 1999 15:52:13 -0400 (EDT)

In VMS there can be a logout file that is executed, typically to clean a
user's directories and so on. Is there such a capability in DU?

What we're trying to do is this: we have an older machine that we're
demoting to basically just be a departmental web server. We've removed
any discs that it used to export, and changed its fstab file to not mount
any discs other than its own internal disk. But, because it does have a
monitor (which presents the dtlogin screen), we want to allow our users to
be able to login to it with the expectation of telnetting to our other
machines.

We've changed the passwd file to make everyone's home directory be /tmp
(except root), because the local disk doesn't have much space. Of course,
the result of that is that the first user to login is the only one allowed
thereafter because of the ownership of certain files in /tmp.

We tried creating a .logout owned by root (so it won't get deleted), and
executable by anyone, that does a

cd /tmp
rm -rf *
rm -rf .*

but it doesn't seem to get executed.

Can anyone suggest how we can attain this shared home directory behavior
whether using dtlogin, rlogin, telnet, etc?
Received on Mon Aug 30 1999 - 19:55:01 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT