Re: writeprotection of unmounted mountpoints automaitcally - possible??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 17, 2005 at 10:37:48PM +0100, Alexander Raab wrote:
> Jeff Vian wrote:
> >On Sun, 2005-01-16 at 14:40 +0100, Alexander Raab wrote:
> >>Jonathan Berry wrote:
> >>>On Fri, 14 Jan 2005 09:30:29 +0100, Alexander Raab
> >>><alexander.raab@xxxxxxxxx> wrote:
> >>>
> >>>>Hi, all.
> >>>>Is there a possibility to set the permissons of ummounted mountpoints to
> >>>>writeprotected?
> >>>>I am coping files very often without checking if a usb-drive is really
> >>>>mounted.
 ... snip good stuff...

You should be checking something!

In the mount point you can place a file "USB-XYZ-DRIVE-NOT-MOUNTED"
and if that file exists do something sane.

On the USB device you should have a volume name or magic file
that labels the drive.  If the file and or label is absent
do something sane.

Since USB is so flexible and dynamic some sanity checking is needed
if you automate reading and writing.

I am not thinking security, just simple sanity checks.
Use a Makefile or some other automating script trick, you can
have a make dependency on the magic files.


-- 
	T o m  M i t c h e l l 
	spam unwanted email.
	SPAM, good eats, and a trademark of  Hormel Foods.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux