> you know I thought something like this would work, but after looking at
> the bash man page for a while, I'm not sure.
>
> 1) you would have to make certain when you create the directory that you
> create a .bash_logout that is owned by root, and that the perms don't
> allow any other user to edit .bash_logout.
>
> 2) also, can you delete a parent directory while reading a file in it?
> that would be the case if you are executing .bash_logout while trying to
> delete its parent directory.
Use /etc/bash.logout
Or another idea -- but not immediate on logout -- is to use a cron-based
watcher to remove homes where user is not logged in.
Also does the user even need a home? If not, just make them use a TMP
directory -- and use some tmp cleanup cron job to clean up periodically.
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss