On 11/7/05, Uosis L <[EMAIL PROTECTED]> wrote:
> I'm trying to make an encrypted home directory which is
> mounted/unmounted on login/logout.
> Mounting it on login was the easy part ( with a custom login style ),
> but is there any way to unmount it on logout ( short from modifying
> init ) ? I want to alter the system as little as possible, so I'm
> kinda reluctant to modify such a key component as init. I hope I
> missed something, but the only places I see where those 2 function
> calls (unmount and ioctl) could be inserted are the shell ( ugly ugly
> ) or the init.

you could have a cronjob run every 5 minutes, and if no process owned
by that user is running, unmount the file system.

Reply via email to