users accounts that don't save data
Jeremy C. Reed
reed at reedmedia.net
Tue Mar 20 09:14:06 MST 2007
> 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.
More information about the PLUG-discuss
mailing list