From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43d266e82e8faef5d5b1ab7ea198cb9a.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703070033.RAA06078@ellpspace.math.ualberta.ca> Date: Thu, 6 Mar 1997 17:33:09 -0700 (MST) From: Michal Jaegermann Subject: Re: Lock discs 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