Ted Cabeen wrote:

> I wrote this program for our local linux lab and I figure I'd release it
> now, since it seems to work and I can't find any blatantly obvious security
> holes in it.  This program must be run setuid root, because it has to
> send signals to the automounter.  Essentially what it does is look at the
> /var/run/automount.*.pid file and send a SIGUSR1 to the pid specified in
> that file.  I think it does sufficient checks to make sure that the file
> it's reading from is geniune and at the worst it's only sending SIGUSR1,
> not anything dangerous like SIGKILL or SIGTERM.  Feel free to inlcude this
> in the next distribution of autofs, or use it in your own lab.
>
> I know it kind of replicates the functionality of the timeout option, but
> we have users who don't want to wait for the timeout to kick in or who
> dislike the continual mounting and unmounting of disks necessary at a short
> timeout.  This program solves those problems as it unmounts all disks that
> are not being used immediately without killing the mounts of any disk thats
> being actually used.  I hope you find it useful.  Enjoy!
>
> ---unmount.c---

Great - just what I needed! Thanx!

--
[EMAIL PROTECTED]        Ralph Clark, Virgo Solutions Ltd (UK)
   __   _
  / /  (_)__  __ ____  __    * Powerful * Flexible * Compatible * Reliable *
 / /__/ / _ \/ // /\ \/ /  *Well Supported * Thousands of New Users Every Day*
/____/_/_//_/\_,_/ /_/\_\    The Cost Effective Choice - Linux Means Business!


Reply via email to