John.Deery
05-23-2008, 12:34 PM
Hello all,
I'm trying to develop a script that will check for a hidden file on a volume. The purpose is so that when someone mounts an external drive (usb or firewire), the script will run and if the file is not found, it will reject the mount.
The reasoning behind it is that I work for a school district and we're noticing more and more illegal software entering our system via external hds. The plan is to have a station set up for a virus and visible scan of the drive's contents, and once verified, a program will be run that will put this hidden file onto the drive. Once mounted, the hidden file will be deleted.
I'm developing the script for both mac and PC, but so far I haven't been able to find much about hooking into the mac mount volume process. I found some information on an Ubuntu forum about uDev rules, but I wasn't able to find anything similar on the mac side.
Any pointers would be much appreciated.
JD
I'm trying to develop a script that will check for a hidden file on a volume. The purpose is so that when someone mounts an external drive (usb or firewire), the script will run and if the file is not found, it will reject the mount.
The reasoning behind it is that I work for a school district and we're noticing more and more illegal software entering our system via external hds. The plan is to have a station set up for a virus and visible scan of the drive's contents, and once verified, a program will be run that will put this hidden file onto the drive. Once mounted, the hidden file will be deleted.
I'm developing the script for both mac and PC, but so far I haven't been able to find much about hooking into the mac mount volume process. I found some information on an Ubuntu forum about uDev rules, but I wasn't able to find anything similar on the mac side.
Any pointers would be much appreciated.
JD