tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* is there a way to execute a script when logging out?
@ 1999-08-30 19:52 Edwin R Wolfe Jr.
  0 siblings, 0 replies; only message in thread
From: Edwin R Wolfe Jr. @ 1999-08-30 19:52 UTC (permalink / raw)
  To: tru64-unix-managers


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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-08-30 19:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-30 19:52 is there a way to execute a script when logging out? Edwin R Wolfe Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox