Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: Lock discs
Date: Thu, 6 Mar 1997 17:33:09 -0700 (MST)	[thread overview]
Message-ID: <43d266e82e8faef5d5b1ab7ea198cb9a.axp-list@archive.invalid> (raw)
In-Reply-To: <9703068576.AA857681600@ccgate.gtech.com>

> 
> 
>      Is there a way to make absolutely sure that the disc where my root 
>      partition is cannot be written to when I run a particular program 

The only "absolute way" is to turn the disk off.  If your program
writes to a raw SCSI device, without paying any attention to a file
system, it may write there whatever it pleases - commands to reformat
your drive including.

If it is better behaved then remounting your disk read-only should
be good enough.  Use '-n' option on mounts which follow as you will
be not able to update /etc/mtab anymore.  Also your editors will likely
fail as they may try to create some files in /tmp

>      Cdwrite has wiped it out twice and I will not run it again until I can 
>      feel safe.

Do you have to run it as a root???  Making output device
readable/writable to 'cdwriter', group 'cdwriter', with corresponding
permissions on a stuff you want to write, should make it safer.
At least you will get failed writes if you will try to send a SCSI
garbage to your main device (assuming that permissions there are sane)
instead of a trashed disk.

  Michal

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

      parent reply	other threads:[~1997-03-07  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-06 20:40 Lock discs Dave Tucker
1997-03-06 22:25 ` Jeff Odom
1997-03-06 23:47 ` Maurice W. Hilarius
1997-03-07  0:33 ` Michal Jaegermann [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox