From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079067216235.tru64-unix-managers.marc@archive.invalid> From: "Edwin R Wolfe Jr." Date: Mon, 30 Aug 1999 19:52:13 +0000 To: tru64-unix-managers Subject: is there a way to execute a script when logging out? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079067216235 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?